Skip to content

Commit

Permalink
Doc
Browse files Browse the repository at this point in the history
  • Loading branch information
pu2clr committed Nov 15, 2024
1 parent bf39cea commit d4ee052
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions examples/SI4844_STM32_POC/SI4844_STM32_POC.ino
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
*
* | SI4844 pin | STM32F1 pin | Description |
* | --------- | ------------ | ------------------------------------------------- |
* | 2 | PA11 | Interrupt pin |
* | 15 | PA12 | Regurlar digital pin used to RESET control |
* | 2 | PA0 | Interrupt pin |
* | 15 | PB4 | Regurlar digital pin used to RESET control |
* | 16 | PB7 (SDA) | I2C bus (Data) |
* | 17 | PB6 (SCL) | I2C bus (Clocl) |
*
Expand All @@ -15,24 +15,30 @@

#include <SI4844.h>

#define RESET_PIN PA12
#define INTERRUPT_PIN PA11
#define RESET_PIN PB4
#define INTERRUPT_PIN PA0
#define DEFAULT_BAND 1

#define I2C_SDA PB7
#define I2C_SCL PB6


SI4844 rx;

void setup() {
Serial.begin(9600);
delay(1000);

Serial.print(F("\nESP32C3 - Begin...\n"));
Serial.print(F("\STM32F1 - Begin...\n"));
Serial.flush();

Wire.begin(I2C_SDA, I2C_SCL);

instructions();
// Some crystal oscillators may need more time to stabilize. Uncomment the following line if you are experiencing issues starting the receiver.
// rx.setCrystalOscillatorStabilizationWaitTime(1);
rx.setup(RESET_PIN, INTERRUPT_PIN, DEFAULT_BAND);
Serial.print(F("\STM32F1 - Working...\n"));
showStatus();
delay(200);
rx.setVolume(48);
Expand All @@ -42,7 +48,7 @@ void setup() {

// Shows instruções
void instructions() {
Serial.println(F("-------------------ESP32C3---CONTROLLER------------------"));
Serial.println(F("-------------------STM32F1---CONTROLLER------------------"));
Serial.println(F("Type F - FM; A - AM; 1 to 7 - SW1 to SW7"));
Serial.println(F("Type f - Custom FM - from 77 to 109 MHz - Step 200kHz"));
Serial.println(F("Type h - Custom FM - from 101 to 104 MHz - Step 200kHz"));
Expand Down

0 comments on commit d4ee052

Please sign in to comment.