https://github.com/eepp/mireille-deyglun
An interactive multigame toy with four RGB LEDs and four light switches
https://github.com/eepp/mireille-deyglun
Last synced: 5 months ago
JSON representation
An interactive multigame toy with four RGB LEDs and four light switches
- Host: GitHub
- URL: https://github.com/eepp/mireille-deyglun
- Owner: eepp
- Created: 2020-08-14T14:22:19.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-08-17T18:14:52.000Z (almost 6 years ago)
- Last Synced: 2025-07-04T23:05:42.862Z (12 months ago)
- Language: CMake
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.adoc
Awesome Lists containing this project
README
// render with Asciidoctor
= The Mireille Deyglun toy
Philippe Proulx
14 August 2020
_**Mireille Deyglun**_ is an interactive multigame toy with four RGB
LEDs and four light switches.
This repository holds the source code of the Mireille Deyglun toy's
microcontroller.
== Build
. Configure the project with CMake for a release build, specifying the
names/paths of several toolchain programs:
+
----
$ mkdir build
$ cd build
$ cmake .. -DCMAKE_C_COMPILER=avr-gcc -DCMAKE_CXX_COMPILER=avr-g++ \
-DCMAKE_LINKER=avr-ld -DCMAKE_OBJCOPY=$(which avr-objcopy) \
-DCMAKE_BUILD_TYPE=release
----
+
[NOTE]
====
You can set the `MD_MCU_TYPE` and `MD_MCU_FREQ` CMake cache variables
at configuration time to set the MCU type and frequency, for example:
----
$ cmake .. -DCMAKE_C_COMPILER=avr-gcc -DCMAKE_CXX_COMPILER=avr-g++ \
-DCMAKE_LINKER=avr-ld -DCMAKE_OBJCOPY=$(which avr-objcopy) \
-DCMAKE_BUILD_TYPE=release \
-DMD_MCU_TYPE=atmega88p -DMD_MCU_FREQ=4000000
----
====
. Build the hex file to program the device with:
+
----
$ make
----
+
The hex file is `mireille-deyglun/mireille-deyglun.hex`.
== Program
To program the device with a https://www.fischl.de/usbasp/[USBasp]
programmer using https://www.nongnu.org/avrdude/[AVRDUDE]:
----
$ avrdude -c usbasp -p atmega328p -e -U flash:w:mireille-deyglun/mireille-deyglun.hex
----