![]()  | 
  
    Kinetic Sculpture
    3.1
    
   Software to Architecture for the Junior Kinetic Sculpture Project 
   | 
 
#include <Switch.h>
Public Member Functions | |
| Switch (int pin) | |
| void | setupSwitch () | 
| byte | getState () | 
Class to interface with the switches on the PCB board. These switches are user toggled to define which mode the Kinetic Sculpture will be in.
Written by Wade Varesio 9/21/2018
      
  | 
  inline | 
Constructor for declaring a switch on the PCB.
| pin | pin that the switch is attached to. | 
      
  | 
  inline | 
Sets up the switch
Sets the pin mode on the switch to be INPUT_PULLUP which allows for reading of the switch without a dedicated resistor
      
  | 
  inline | 
Call to get the state of the switch which is either HIGH (switch toggled up towards top of PCB) or vice versa
 1.8.6