This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | void setup(){ | |
| pinMode(2, INPUT); | |
| pinMode(3, INPUT); | |
| pinMode(12, INPUT); | |
| pinMode(13, INPUT); | |
| } | |
| void loop(){ | |
| int blueButtonState = digitalRead(2); | |
| int redButtonState = digitalRead(3); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | var isWorkingDay = (year, month ,day, holidays) => ( | |
| moment([year, month, day]).isValid() && | |
| moment([year, month, day]).day() >= 1 && | |
| moment([year, month, day]).day() <= 5 && | |
| !holidays.includes(day) | |
| ) | |
| var getWorkingDays = (targetYear, targetMonth, startDay, holidays) => { | |
| let workingDays = [] | |
| for(let i = startDay; i <= 31; i++) { |