Skip to content
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

Fixes for HELTEC V3.1 #71

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions hanimandl.ino
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ const int outputSW = 26;

// Servo
const int servo_pin = 33;
// const int servo_pin = 45; // Move Servo to different PIN for HELTEC V3.1
kittel marked this conversation as resolved.
Show resolved Hide resolved

// 3x Schalter Ein 1 - Aus - Ein 2
const int switch_betrieb_pin = 40;
Expand Down Expand Up @@ -2085,7 +2086,7 @@ void setup()
pinMode(button_stop_pin, INPUT_PULLDOWN);
pinMode(switch_betrieb_pin, INPUT_PULLDOWN);
pinMode(switch_setup_pin, INPUT_PULLDOWN);
#if HARDWARE_LEVEL == 2
#if HARDWARE_LEVEL == 2 || HARDWARE_LEVEL == 3
pinMode(vext_ctrl_pin, INPUT_PULLDOWN);
#endif

Expand All @@ -2107,18 +2108,19 @@ void setup()
attachInterrupt(outputA, isr2, CHANGE);
#endif

// switch Vcc / GND on normal pins for convenient wiring
// output is 3.3V for VCC
digitalWrite (switch_vcc_pin, HIGH);
digitalWrite (button_start_vcc_pin, HIGH);
digitalWrite (button_stop_vcc_pin, HIGH);

// pinMode (_GND, OUTPUT); // turn on GND pin first (important!)
// turn on VCC power
pinMode (switch_vcc_pin, OUTPUT);
pinMode (button_start_vcc_pin, OUTPUT);
pinMode (button_stop_vcc_pin, OUTPUT);

// switch Vcc / GND on normal pins for convenient wiring
// output is 3.3V for VCC
digitalWrite (switch_vcc_pin, HIGH);
digitalWrite (button_start_vcc_pin, HIGH);
digitalWrite (button_stop_vcc_pin, HIGH);


// Buzzer
pinMode(buzzer_pin, OUTPUT);

Expand Down