Button

CONNECTING BOARD PROGRAMMER e1668067896536

Embedded Programming

1. Programming Board Blinking Code using Arduino environment CODE: I started with code code from Jaclyn Berry’s page : const int buttonPin = 7; const int ledPin = 2; int buttonState = 0; void setup() { pinMode(ledPin, OUTPUT); pinMode(buttonPin, INPUT); } void loop() { buttonState = digitalRead(buttonPin); if (buttonState == HIGH){ digitalWrite(ledPin,HIGH); } else{ digitalWrite(ledPin,LOW); […]

Embedded Programming Read More »

Output number when button is pressed using Atmega16 microcontroller

This is simple demo program of reading button state, lighting LEDs, sending information via USART. 8 buttons are connected to Atmega16 port A, 8 LEDs to port B via current limiting resistors. While none of buttons arent pressed there is running light on LEDs performed, but when any of buttons is pressed then LEDs display

Output number when button is pressed using Atmega16 microcontroller Read More »

Scroll to Top