Difference between revisions of "VFO-004"
Jump to navigation
Jump to search
Blwikiadmin (talk | contribs) (→Parts) |
Blwikiadmin (talk | contribs) |
||
Line 39: | Line 39: | ||
[[File:OLED128x32.PNG]] | [[File:OLED128x32.PNG]] | ||
− | === Arduino Library for OLED | + | === Arduino Library for OLED === |
* [https://github.com/olikraus/u8g2 U8g2: Library for monochrome displays, version 2] | * [https://github.com/olikraus/u8g2 U8g2: Library for monochrome displays, version 2] |
Revision as of 21:35, 29 October 2020
Contents
Breadboard VFO
- Si5351 qrp-labs Breakout board
- Arduino Mini
- Rotary Encoder Breakout Board
Parts
Si5351 Board
- Si5351 qrp-labs Breakout board
- Replaced R1, R2 with 3.3K
Rotary Encoder/Breakout Board
- Includes pushbutton Switch
- Includes Pull-Up resistors
- Needs R/C filter on output for debounce
- Reading Rotary Encoders - Arduino reference
- Simple Rotary Encoder Arduino library
- Library for the Arduino environment for using a rotary encoder as an input
128x32 OLED
Arduino Library for OLED
U8G2_SSD1306_128X32_UNIVISION_F_HW_I2C u8g2(U8G2_R0, /* reset=*/ U8X8_PIN_NONE); // STM32, Ebay OLED
u8g2.setFont(u8g2_font_ncenB14_tr);
Hello World Code
U8G2_SSD1306_128X32_UNIVISION_F_HW_I2C u8g2(U8G2_R0, /* reset=*/ U8X8_PIN_NONE); // STM32, Ebay OLED void setup(void) { u8g2.begin(); } void loop(void) { u8g2.clearBuffer(); // clear the internal memory u8g2.setFont(u8g2_font_ncenB08_tr); // choose a suitable font u8g2.drawStr(0,10,"Hello World!"); // write something to the internal memory u8g2.sendBuffer(); // transfer internal memory to the display delay(1000); }