Skip to content

Instantly share code, notes, and snippets.

View barakamwakisha's full-sized avatar

Baraka Mwakisha barakamwakisha

  • Apago Inc
  • Nairobi Kenya
View GitHub Profile
@barakamwakisha
barakamwakisha / common-cathode-7-segment-display.ino
Created November 15, 2022 09:42
Arduino code that displays 0 to 9 on a common cathode 7 Segment Display
/* 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},
#!/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