Hi, did you get the leds to work? Can you also include the SET_LOW() and SET_HIGH() functions?
I think the #include file "ws2812B.h" only has the extern declaration of the functions, right?
Can you share the complete example?
Thank you
Widdel
@Widdel
Posts made by Widdel
-
RE: 能否提供一下WS2812B的程序实例?
-
AES encrypt function example
Hi, can anyone explain me how to retrieve the result of the aes_encrypt function, please?
I tryed to follow the example of the library, but i don't understand how to get the encrypted data from the handle function, thanks.
The library is inside the SDK and its name is aes.h.
typedef void (aes_func_result_cb) (uint8_t status, const uint8_t aes_res, uint32_t src_info);
/*
- FUNCTIONS
*/
/*********************************************************************
- @fn aes_encrypt
- @brief Perform an AES encryption - result within callback
-
Sample:
-
const uint8_t key[] = {0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, 0x00};
-
const uint8_t value[] = {0x11, 0x22, 0x33, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0xee, 0x0f, 0xaa};
-
aes_encrypt(key, value, true, aes_enc_result_cb, 0);
- @param key - Key used for the encryption
-
val - Value to encrypt using AES
-
copy - Copy parameters because source is destroyed
-
res_cb - Function that will handle the AES based result (16 bytes)
-
src_info - Information used retrieve requester
- @return None.
/
void aes_encrypt(const uint8_t key, const uint8_t *val, bool copy, aes_func_result_cb res_cb, uint32_t src_info);
- FUNCTIONS
-
Keil v5.38 how to setup it to compile the ble_simple_peripheral ?
Hi at all,
there is a guide step by step for how to configure keil to correct compite the ble_simple_peripheral?
When i double click on the file "ble_simple_peripheral.uvproj", keil starts and display this form, i selected "Migrate to Device Pack", it's right?After this selection appear this window that i close because i don't know what to select, it's right?
After that keil asked me if i want to migrato to use pack device, i selected Yes, it's right?
Here i selected this device, it's right?
This window confirm the migration
Then when i try to compile there are a lot of errors
I'm a beginner, please, can anyone help me?
Thanks a lot -
BLE Encrypted communication
Hi at all,
I'm a new developer with this chip, i saw the "ble_simple_periphear" example in the "security encryption" for BLE, it's sufficient to setup the parameters like this to have an encrypted connection?I need to prevent sniffing to my information.
gap_security_param_t gap_security_param={
.mitm=false,
.ble_secure_conn=true,
.io_cap=GAP_IO_CAP_NO_INPUT_NO_OUTPUT,
.pair_init_mode=GAP_PAIRING_MODE_WAIT_FOR_REQ,
.bond_auth=true,
.password=0,
};/gap_security_param/I searched i other posts but i didn't find informations.
Thanks to all