simon says with pro mini, display, ws2812 and touch keys
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
cmake_minimum_required(VERSION 3.7)
|
|
|
|
project(firmware)
|
|
|
|
|
|
|
|
# Fake CMake config for CLion
|
|
|
|
|
|
|
|
set(CMAKE_CXX_STANDARD GNU99)
|
|
|
|
|
|
|
|
set(SOURCE_FILES
|
|
|
|
lib/calc.h
|
|
|
|
lib/iopins.c
|
|
|
|
lib/iopins.h
|
|
|
|
lib/adc.c
|
|
|
|
lib/adc.h
|
|
|
|
lib/debounce.c
|
|
|
|
lib/debounce.h
|
|
|
|
lib/nsdelay.h
|
|
|
|
lib/spi.c
|
|
|
|
lib/spi.h
|
|
|
|
lib/usart.c
|
|
|
|
lib/usart.h
|
|
|
|
lib/color.c
|
|
|
|
lib/color.h
|
|
|
|
lib/wsrgb.c
|
|
|
|
lib/wsrgb.h
|
|
|
|
lib/timebase.c
|
|
|
|
lib/timebase.h
|
|
|
|
main.c
|
|
|
|
pinout.h
|
|
|
|
game.c
|
|
|
|
game.h
|
|
|
|
display.c
|
|
|
|
display.h
|
|
|
|
leds.c
|
|
|
|
leds.h
|
|
|
|
game.c
|
|
|
|
game.h rng.c rng.h)
|
|
|
|
|
|
|
|
include_directories(lib
|
|
|
|
/usr/avr/include/)
|
|
|
|
|
|
|
|
add_definitions(-D__AVR_ATmega328P__)
|
|
|
|
|
|
|
|
add_executable(firmware ${SOURCE_FILES})
|