Skip to content

Commit f1bf7a4

Browse files
committed
Update 1602_keypad_shield.ino
better commenting for mode() function
1 parent 0d7e971 commit f1bf7a4

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

1602_keypad_shield.ino

+5-3
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ void requested_temperature(int lcd_key) {
196196

197197
void mode(int lcd_key) {
198198

199-
//system_mode
199+
//sysem_mode
200200

201201
lcd.print("Mode: ");
202202

@@ -226,10 +226,12 @@ void mode(int lcd_key) {
226226

227227
void fan(int lcd_key) {
228228

229-
//fan_mode
229+
//example fan_mode value from eeprom
230+
//fan_mode = 1
230231

231232
lcd.print("Fan: ");
232233

234+
// press_count used for cycling through values below
233235
press_count++;
234236
lcd.setCursor(5,0);
235237
switch (press_count % 2) {
@@ -238,7 +240,7 @@ void fan(int lcd_key) {
238240
fan_mode = 0;
239241
break;
240242
case 1:
241-
lcd.print("On ");
243+
lcd.print("On ");
242244
fan_mode = 1;
243245
break;
244246
}

0 commit comments

Comments
 (0)