Monthly Archives: January 2017
Create and read custom section in Linux ELF header

Let’s create test C file:

Create custom section data:

Compile test binary:

Create read_section.c with content:

Compile read_section:

Result:

Let’s test it with objdump:

Control LEDs with shift register on Arduino (ATmega168/328)

AVR code for controlling LEDs with button by external interrupt and shift register “74HC595”

Scheme:

Source code:

Result:

External links:
EXTERNAL INTERRUPTS ON THE ATmega168/328
The 74HC595 8 bit shift register
Arduino Pin Mapping

Posted on January 14, 2017, 8:26 pm By
No comments yet Categories: C