• This is made easy by the TEXT LCD library. The schematic shows how to connect up the 16×2 LCD to the MBEd Schematic Code #include “mbed.h” #include “TextLCD.h” TextLCD lcd(p15,…

  • A basic PWM example using an Attiny2313 Schematic Code #define F_CPU 1000000UL #include <avr/io.h> #include <util/delay.h> int main(void) { DDRB   |= (1 << PB2);                   // PWM output on PB2 TCCR0A…

  • Being interested in various microcontrollers means we purchase lots of modules, development boards and sensors. One of these is the ARduino of which we have purchased many different shields, as…

  • This is a very similar example to our ATMEGA16 and LCD example. We simply connect our 16×2 LCD display to our Attiny2313 PORTB. Again for simplicity the code is written…