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
| /* assigning Arduino pins for the seven-segment display */ | |
| int segPins[] = {3, 2, 8, 7, 6, 4, 5}; | |
| /* declaring an array of the number from 0 to 9 in the order from a of g */ | |
| byte segCode[10][7] = { | |
| // a b c d e f g | |
| { 1, 1, 1, 1, 1, 1, 0}, | |
| { 0, 1, 1, 0, 0, 0, 0}, | |
| { 1, 1, 0, 1, 1, 0, 1}, | |
| { 1, 1, 1, 1, 0, 0, 1}, |
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
| #!/bin/bash | |
| # Homebrew | |
| /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" | |
| # NVM | |
| curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash | |
| brew install jq | |
| brew install deno |