diff --git a/firmware/.gitignore b/firmware/.gitignore index b9f3806..050b399 100644 --- a/firmware/.gitignore +++ b/firmware/.gitignore @@ -1,2 +1,4 @@ .pio .vscode +.cache +compile_commands.json diff --git a/firmware/platformio.ini b/firmware/platformio.ini index f00616c..b86a206 100644 --- a/firmware/platformio.ini +++ b/firmware/platformio.ini @@ -12,7 +12,7 @@ platform = teensy board = teensylc framework = arduino -build_flags = -D USB_HID -D LAYOUT_SWEDISH -w +build_flags = -Isrc -Ilib -D USB_HID -D LAYOUT_SWEDISH -w board_build.f_cpu = 48000000L extra_scripts = pre:extra_script.py upload_protocol = teensy-cli diff --git a/firmware/src/cmdr_joystick.cpp b/firmware/src/cmdr_joystick.cpp index 77726e4..111937b 100644 --- a/firmware/src/cmdr_joystick.cpp +++ b/firmware/src/cmdr_joystick.cpp @@ -1,32 +1,9 @@ /* - * ======================================================================================================= - * ------------------------------------------------------------------------------------------------------- - * ---####################-----###########-------###########-----############--############-############-- - * --######################---#############-----#############---- -- - --- - * --###### ##---##### ###-----### #####---------##-------#######------#------------- - * -- -------------- --- ----- --- ----- ---------##-------#------------#------------- - * --#####--------------------#####------####-####------#####---------##-------###########--############-- - * -- -------------------- ------ ------ --------- ------- -- -- - * --#####--------------------#####--------#####--------#####--------------------------------------------- - * -- -------------------- -------- -------- --------------------------------------------- - * --######--------------##---#####---------------------#####---------- CMtec CMDR Joystick RC ----------- - * --##################### ---#####---------------------#####--------------------------------------------- - * ---################### ----#####---------------------#####--------------------------------------------- - * --- ----- --------------------- --------------------------------------------- - * ------------------------------------------------------------------------------------------------------- - * ======================================================================================================= - * - * Copyright 2022 Christoffer Martinsson - * - * CMtec CMDR Joystick RC can be redistributed and/or modified under the terms of the GNU General - * Public License (Version 2), as published by the Free Software Foundation. - * A copy of the license can be found online at www.gnu.o urg/licenses. - * - * CMtec CMDR Joystick RC is distributed in the hope that it will be useful, but WITHOUT ANY - * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR - * A PARTICULAR PURPOSE. See the GNU General Public License for more details. - * - * Joystick based on standard teensy "usb_joystick" library for HID joystick usb data communication. + * Project: CMtec CMDR Joystick RC + * Date: 2023-09-02 + * Author: Christoffer Martinsson + * Email: cm@cmtec.se + * License: Please refer to end of this file for license information */ #include "ElrsTx.h" @@ -611,3 +588,33 @@ void loop() indicator_timestamp_micros = current_timestamp_micros + TIME_US_200ms; } } +/* @License + * ======================================================================================================= + * ------------------------------------------------------------------------------------------------------- + * ---####################-----###########-------###########-----############--############-############-- + * --######################---#############-----#############---- -- - --- + * --###### ##---##### ###-----### #####---------##-------#######------#------------- + * -- -------------- --- ----- --- ----- ---------##-------#------------#------------- + * --#####--------------------#####------####-####------#####---------##-------###########--############-- + * -- -------------------- ------ ------ --------- ------- -- -- + * --#####--------------------#####--------#####--------#####--------------------------------------------- + * -- -------------------- -------- -------- --------------------------------------------- + * --######--------------##---#####---------------------#####--------------------------------------------- + * --##################### ---#####---------------------#####--------------------------------------------- + * ---################### ----#####---------------------#####--------------------------------------------- + * --- ----- --------------------- --------------------------------------------- + * ------------------------------------------------------------------------------------------------------- + * ======================================================================================================= + * + * Copyright 2022 Christoffer Martinsson + * + * CMtec CMDR Joystick RC can be redistributed and/or modified under the terms of the GNU General + * Public License (Version 2), as published by the Free Software Foundation. + * A copy of the license can be found online at www.gnu.o urg/licenses. + * + * CMtec CMDR Joystick RC is distributed in the hope that it will be useful, but WITHOUT ANY + * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR + * A PARTICULAR PURPOSE. See the GNU General Public License for more details. + * + * Joystick based on standard teensy "usb_joystick" library for HID joystick usb data communication. + */