Alex Larose

Generation

code to explanationTue, 18 Apr 2023

int bits[] = {4,5,6,7}; //bit zero is bits[0] void setup() { Serial.begin(9600); for(int i = 4; i<= 7; i++) { //initalize pins [4,7] pinMode(i, OUTPUT); } } void loop() { for(int i = 0; i < 10; i++) { //displaying numbers 0 to 9 /* here you will need to add logic to figure out what bits to turn on and off * refer to the table in the instructions to know what bits to turn on and off*/ /* example of turning 0 bit on : digitalWrite(bits[0], HIGH); * example of turning 0 bit off: digitalWrite(bits[0], LOW ); */ delay(500); //1/2 a second delay so that we can see the numbers changing } }

* **Explanation** - explain what your code does. * **Code** - show your code. Do not just copy and paste it. Embed the code in your markdown file. * **Example** - show the output of your code. ### Part 2: This part will be presented in the form of a paragraph. > For this part you will need to write a paragraph that explains the concept. You will need to use the terms from the rubric. > The paragraph should be between 5 and 8 sentences. ### Part 3: This part will be presented in the form of a paragraph. > For this part you will need to write a paragraph that explains the concept. You will need to use the terms from the rubric. > The paragraph should be between 5 and 8 sentences. ### Part 4: This part will be presented in the form of a paragraph. > For this part you will need to write a paragraph that explains the concept. You will need to use the terms from the rubric. > The paragraph should

Questions about programming?Chat with your personal AI assistant