Program my board to do something
For this weeks assignment we were supposed to program our hello world board so I started by making a simple code so that the LED would light up. I used the Arduino software to put in the program to the board. I used the board that I made in
week 7
and in that week I went through the
attiny44 datasheet
and found out what pin is numbered what and the pins I can use are the PA's and PB's but some of the PB's have a designated purpose like PB0 and PB1 are for external clock like I'm using in this board and PB3 for reset and for my final project my accelerometer has an SDA and SCL pins and so does the ATtiny, the miso and mosi are used for programming the board but the can be repurposed if wanted.
Here I needed to put digitalWrite in.
Here I didn't close the brackets with digitalWrite
Like the error message displays is that I needed to put ";" after digitalWrite
Here I forgot to connect the programmer to the board
And voila!
I managed to light it up but I connected a LED to the button and had problems with that, first the LED lit up whilst holding the button and the connected LED lit up aswell but after a while only the button LED lit up so I decided to make another board.
I wanted to make the LED's change after pushing the button and found a toggle feature in arduino and wanted to make some of them bling whilst being toggled but haven't still figured out how to do so. I also made other codes so while I was holding the button down it would do something else and that worked well. Haven't had more time to anything more than that.
Arduino Test Button File
PCB Outline File
PCB Traces File