How mako777/renaultaffa2 works
RenaultAffa2 is Arduino firmware for operating a Renault AFFA2++ display: it communicates over I2C with MIRQ control, displays text, and responds to steering-wheel remote buttons; the README also documents a resistor-ladder output and supply-voltage display. The graph separates application behavior, display transport, and AVR support libraries. The main source is listed as read in the index, but its contents were not excerpted here, so application-level links rely on README descriptions; standalone timer and USART support are shown without assumed connections.
Main entry points: main.cpp Firmware · sagem_affa2.c AFFA2 protocol · I2CBase.c I2C driver · Analog2Digital.cpp Analog conversion
Components 12
Application behavior
- Firmware
src/main.cpp - Remote buttons
src/main.cpp - Radio DAC
src/main.cpp - Supply voltage
src/main.cpp
Display communication
- AFFA2 protocol
lib/sagem_affa2/sagem_affa2.c - I2C driver
lib/I2CBase/I2CBase.c
AVR support
- Analog conversion
lib/AVRTools/Analog2Digital.cpp - GPIO macros
lib/AVRTools/GpioPinMacros.h - Timer queue
lib/timer/timer.c - USART library
lib/usart/usart.c
Other components
- Car radio
- AFFA2 display
Connections 10
- Firmware → AFFA2 protocol: uses display
README.md - AFFA2 protocol → I2C driver: calls I2C
lib/sagem_affa2/sagem_affa2.c - I2C driver → AFFA2 display: transfers data
README.md - Firmware → Remote buttons: handles presses
README.md - Remote buttons → Car radio: triggers buttons
README.md - Firmware → Radio DAC: drives outputs
README.md - Radio DAC → Car radio: signals buttons
README.md - Firmware → Supply voltage: measures voltage
README.md - Supply voltage → Analog conversion: samples analog
README.md - Analog conversion → GPIO macros: uses pin macros