For this week the assignment was program our board that was made in the Electronic Design week, but before that one most important things is read the datasheet of your microcontroller as it will be important to know more about your microcontroller.
One of the most important things that i always keep going back to is the attiny44 pinout.
I went back and forth alot between the pinout figure and my board schematic to make sure i know where is led and switch connected to which pin.
From the schematics i can see that i connected my led to SCK pin which is PA4 and the Switch to MISO which is pin PA5, knowing where i connected everything is important when programming later.
Its important to know the pinout of your board luckily the attiny44 has 14 pins, 2 for GND and VCC one for RST, and the rest can be programmable either as inputs or outputs.
I tried programming the board using the Arduino IDE, using the arduino modified C++ language to write this simple button led code
With help of Eng Hashim he guided us on how to use the serial to display the state of the switch when its pressed, as it shows 1 when button is not pressed and 0 when button is pressed + turns on the led.