Skip to content

Commit

Permalink
v.1.51
Browse files Browse the repository at this point in the history
bugfix: fix left-button for netgotchi-pro
  • Loading branch information
mxzz committed Oct 4, 2024
1 parent 8c87eb1 commit 9ff728a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 4 additions & 3 deletions netgotchi/netgotchi.ino
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,18 @@ const float VERSION = 1.5;
#define SCREEN_HEIGHT 64
#define OLED_RESET -1

//select to 1 which oled driver you have , default is ssd1306
//select to 1 which oled driver you have , default is ssd1306 , ssh1106 for netgotchi pro
#define oled_type_ssd1306 1
#define oled_type_sh1106 0
#define oled_type_ssd1305 0

#define BTN_RIGHT 13
#define BTN_LEFT 14
#define BTN_LEFT 12
#define BTN_A 2
#define BTN_B 0
#define BUZZER_PIN 13
//#define BUZZER_PIN 15 //for netgotchi pro
//#define BUZZER_PIN 13 //for netgotchis v2
#define BUZZER_PIN 13
#define EXT_PIN_16 16 // D0 on pro

#if oled_type_ssd1305
Expand Down
2 changes: 2 additions & 0 deletions netgotchi/screens.ino
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ void displayInit()
{
//display initializer
if(oled_type_ssd1306){
// spefify your pins if needed
// Wire.begin(D5, D6);
if (!display.begin(2, 0x3C)) {
// add "SSD1306_SWITCHCAPVCC, 0x3C" in the begin() if screen doesn't work.
SerialPrintLn("SSD1306 allocation failed");
Expand Down

0 comments on commit 9ff728a

Please sign in to comment.