Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
void HC595_OUT(unsigned char send_data)
{
unsigned char bit_mask;
for (bit_mask=1; bit_mask ;bit_mask <<=1)
{
// On an AVR you can set the bit directly and i'd use
// "data = (send_data & bit_mask);"
//Else use this if/else ....
if((send_data & bit_mask))
output_high(data);
else
output_low(data);
output_high(clock);
delay_us(1);
output_low(clock);
}
output_high(latch);
delay_us(1);
output_low(latch);
}