From d82460ee377f82f2efc6fb53954c4b8df78593e4 Mon Sep 17 00:00:00 2001 From: mitchellhansen Date: Sun, 2 Feb 2020 21:46:56 -0800 Subject: [PATCH] name the hex main --- CMakeLists.txt | 4 ++-- main.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 204cfc4..e1be6eb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,7 +5,7 @@ cmake_minimum_required(VERSION 2.6) set(MCU "atmega328p" ) set(CPU_SPEED "16000000" ) -set(PORT "/dev/ttyUSB0") +set(PORT "/dev/ttyUSB1") set(PORT_SPEED "57600") set(PIN_VARIANT "standard") set(ARDUINO_PATH "arduino") @@ -58,7 +58,7 @@ set(CMAKE_EXE_LINKER_FLAGS "-Os -Wl,--gc-sections -mmcu=${MCU}") add_executable(${PROJECT_NAME} ${ARDUINO_CORE_SRC} ${SRC_FILES}) add_custom_target(flash - COMMAND ${CMAKE_OBJCOPY} -j .text -j .data -O ihex ${PROJECT_NAME} ${PROJECT_NAME}.hex + COMMAND ${CMAKE_OBJCOPY} -j .text -j .data -O ihex ${PROJECT_NAME} main.hex COMMAND avrdude -F -p${MCU} -carduino -P${PORT} -b${PORT_SPEED} -D -Uflash:w:main.hex:i DEPENDS ${PROJECT_NAME} ) diff --git a/main.cpp b/main.cpp index 414563c..515b624 100644 --- a/main.cpp +++ b/main.cpp @@ -66,8 +66,8 @@ int main(void) { radio.startListening(); - //SoftPWMSet(16, 255); - //SoftPWMSet(19, 255); + SoftPWMSet(17, 255); + SoftPWMSet(18, 255); //digitalWrite(18, HIGH);