Modify some code comments

In file "SenseLED.c"
This commit is contained in:
Suhaylzhao
2016-09-03 21:23:08 +08:00
parent 5a616281b0
commit 6e6a80a5e6
3 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -22,11 +22,11 @@ int main(void)
while(1){
if(digitalRead(sensorPin) == HIGH){ //sensor has pressed down
if(digitalRead(sensorPin) == HIGH){ //if read sensor for high level
digitalWrite(ledPin, HIGH); //led on
printf("led on...\n");
}
else { //sensor has released
else {
digitalWrite(ledPin, LOW); //led off
printf("...led off\n");
}
@@ -4,6 +4,7 @@
# Author : freenove
# modification: 2016/07/13
########################################################################
import RPi.GPIO as GPIO
import Keypad #import module Keypad
ROWS = 4 # number of rows of the Keypad
COLS = 4 #number of columns of the Keypad
BIN
View File
Binary file not shown.