#include "all.h"
void setup() {
// put your setup code here, to run once:
init_port();
}
void loop() {
// put your main code here, to run repeatedly:
volatile char* out;
out=0x31;
*out=0x01;
volatile char* ctr;
ctr = 0x108;
*ctr=0x00;
/** so how this works is from A0 they are getting 5V coz *out is 0x01 with the help
of K ports first 2 pin i am controlling the Cathode of the led if cathode is 1
then that led wont glow coz they wont be any pd across the led so to glow the led
the pin should be 0.
if ctr is 0x01 --> 0b 00000 0001 -> A8 wont glow A9 will glow
if ctr is 0x02 --> 0b 00000 0010 -> A8 will glow A9 wont glow
if ctr is 0x03 --> 0b 00000 0011 -> both wont glow
if ctr is 0x00 --> 0b 00000 0000 -> both will glow
**/
}