-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simple test for beginner with ESP32 and si5351 (with a M5StackStickCplus) #3
Comments
Hello Rob, This repository is a bit older and the solution I used was to implement my own simple I2C functions. If you create the SI5351 class you can specify the SCL and SDA pins. Si5351::Si5351(uint8_t i2c_addr, uint8_t i2c_sda, uint8_t i2c_scl). In the file IO.CPP you can see the definition for the ports. ------------------------------------------------------- #define I2C_SDA2 16 #define CLK_BFO_RX SI5351_CLK2 Si5351 si5351; In the meantime there is a fix for the SI5351 library (https://github.com/etherkit/Si5351Arduino) but the maintainer did not implement it. Change Wire.requestFrom(i2c_bus_addr, (uint8_t)1, (uint8_t)false); to Wire.requestFrom(i2c_bus_addr, (uint8_t)1); //, (uint8_t)false); Than you can use the original library |
Whooo, thank you so much for the fast reply. Warm regards, |
Paul, Just before going to bed. Tried the modifications you mentioned. /*
*/ Si5351 si5351; void setup() { M5.begin(); //Check I2C delay(1000); // Set CLK0 to output 27.12 MHz } void loop() { } |
Great that it works! |
Sorry to bother, but it seems you are one of the few that got the ESP32 and the si5351 working nicely.
After downloading and looking at your code, I was trying to find out how to simply the code for my M5StackStickCplus to work. But I could not figure that out.to get the I2C working on pin G26 (SCL) and pin G0(SDA).
Please advise me how to make a simple .ino file with the modified libraries you made (Ii2c.h and si5351.h)
Regards,
Rob Oudendijk
The text was updated successfully, but these errors were encountered: