Skip to content
Discussion options

You must be logged in to vote

Oh, OK, let me give a few more details.
You want to look in the firmware and find the lines where you turn the radio off after acquiring a snapshot, these lines:

// Power off the radio
Radio_disableHFXOInput();
Radio_powerOff();

After these lines, you insert the new code.
First, enable I2C:

I2C_enableInterface();

Just as an example, sending some text via I2C works like this:

char message[255];
sprintf(&message[1], "This is random text and these are two random values: %lu, %lu", value1, value2);
size_t msgLen = strlen(&message[1]);
((uint8_t *) message)[0] = (uint8_t) msgLen;
noteI2cTransmit(i2caddress, (uint8_t *) message, msgLen + 1);
Timer_delayMilliseconds(1);
memset(message, 0, 255);

H…

Replies: 0 comments 10 replies

Comment options

You must be logged in to vote
9 replies
@sunmouren
Comment options

@JonasBchrt
Comment options

Answer selected by sunmouren
@sunmouren
Comment options

@JonasBchrt
Comment options

@sunmouren
Comment options

@sunmouren
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants