Digital Electrics Assignment 4

Below is my code: int ledPinArray[4] = { 8, 9, 10, 11 }; int blinkAllLedsPin = 33; int sequencePin = 34; int sequenceDirectionPin = 35; int potValue = 0; int numLEDS = 4; void setup() {  for (int i = 0; i < numLEDS; i++) {    pinMode(ledPinArray[i], OUTPUT);  }  pinMode(blinkAllLedsPin, INPUT);  pinMode(sequencePin, INPUT);  pinMode(sequenceDirectionPin, INPUT);Continue reading “Digital Electrics Assignment 4”

Digital Electronics Lab 3

Here is my code: int ledPin1 = 8; int ledPin2 = 9; int ledPin3 = 10; int ledPin4 = 11; int buttonPinC = 33; int buttonPinE = 34; int buttonPinG = 35; int buttonPinB = 36; int modeSwitch = 37; int potValue = 0; void setup() {  pinMode(ledPin1, OUTPUT);  pinMode(ledPin2, OUTPUT);  pinMode(ledPin3, OUTPUT);  pinMode(ledPin4, OUTPUT);Continue reading “Digital Electronics Lab 3”

Digital Electronics Week 2

Part 1)Code Errors1) In line 2 of the code there was a “;” missing at the end.2) In line 7/ the setup, ledpin2 and buttonpin2 has to be added as an output and input.3) In line 13/ the function there has to be a “checkbutton2”https://www.tinkercad.com/things/k1wDcr9dX9I Part2)Function 1: In this function the switch starts to makeContinue reading “Digital Electronics Week 2”

Digital Electronics Lab 2

Here is my code: int ledPin1 = 8; int ledPin2 = 9; int ledPin3 = 10; int ledPin4 = 11; int blinkAllLedsPin = 33; int sequencePin = 34; int sequenceDirectionPin = 35; int potValue = 0; void setup() {  pinMode(ledPin1, OUTPUT);  pinMode(ledPin2, OUTPUT);  pinMode(ledPin3, OUTPUT);  pinMode(ledPin4, OUTPUT);  pinMode(blinkAllLedsPin, INPUT);  pinMode(sequencePin, INPUT);  pinMode(sequenceDirectionPin, INPUT);  Serial.begin(9600); }Continue reading “Digital Electronics Lab 2”

Digital Electronics Week 1

Below is the link to my week1 Digital Electronics circuit https://www.tinkercad.com/things/2HnyPpRjt6N In my circuit, first I took the first button and made it so that by pressing the button it would make only the yellow LED light up.Then, I added another button. This button was coded so that by pressing it, it would light bothContinue reading “Digital Electronics Week 1”

Digital Electronics Lab 1

The Grain Cube by Paul OdenwaldtThis project first caught my eye with the thumbnail on the demonstration video. In the video he uses a Gamecube controller to control the granular synthesizer. Although I wasn’t to decipher the code that he wrote, I was really surprised by the things that he made possible with the controller.Continue reading “Digital Electronics Lab 1”

Design a site like this with WordPress.com
Get started