Difference between revisions of "VFO-004"

From Land Boards Wiki
Jump to navigation Jump to search
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

Breadboard VFO

Parts

Si5351 Board

Si5351 Breakout Schematic.PNG

Si5351 Breakout Pinout.PNG Si5351 Breakout Pins.PNG

Si5351 Board.jpg

Rotary Encoder/Breakout Board

RotaryEncoderCAD.PNG

Si5351 004 720px.jpg

128x32 OLED

OLED128x32.PNG

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);  
}