top of page
Search

Robotics day 15- Keypad robot part 2

  • sreeramchittayil
  • Jan 20, 2023
  • 1 min read

In this lesson, we went into further detail on the "customekeypad" library. This included the use of the 8-pin keypad. We started off by connecting an LED light to the keypad and using the code "digital write" (10, HIGH); this is the last code needed to turn on the light (low is used to turn off the light). But before this step, we needed to give the computer some information about the digital reading and which pin we had connected the LED light to (pins 10, 11, 12, 13, and 14). We did this by writing "pinMode (10, OUTPUT);". After this, in the "void loop()," we write the previous code that I had mentioned (digitalWrite (10, HIGH);). The semicolon is a very important part of the code and needs to be put after the closed brackets.


Picture of the downloaded library and code:


 
 
 

Comments


bottom of page