Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile Error - tormach_controls:53: error: 'Tormach' was not declared in this scope #2

Open
NigelHiggs30 opened this issue Dec 20, 2023 · 1 comment

Comments

@NigelHiggs30
Copy link

NigelHiggs30 commented Dec 20, 2023

I have followed the setup instructions and I have the Arduino editor have the "TeensyLC" board setting and USB Type "Tormach Controller" set correctly. When I try to compile I am given a set of errors related to Tormach as such

In file included from /home/na/arduino-tormach/libraries/GSM/src/GSM.h:46:0,
                 from /home/na/Arduino/tormach-pendant/teensy/tormach_controls/tormach_controls.ino:11:
/home/na/arduino-tormach/libraries/GSM/src/GSM3ShieldV1BandManagement.h:49:125: warning: 'typedef' was ignored in this declaration
 typedef enum GSM3GSMBand {UNDEFINED, EGSM_MODE, DCS_MODE, PCS_MODE, EGSM_DCS_MODE, GSM850_PCS_MODE, GSM850_EGSM_DCS_PCS_MODE};
                                                                                                                             ^
tormach_controls: In function 'void setup()':
tormach_controls:53: error: 'Tormach' was not declared in this scope
   Tormach.begin();
   ^
tormach_controls: In function 'void loop()':
tormach_controls:68: error: 'Tormach' was not declared in this scope
     Tormach.send_now();
     ^
button: In function 'bool button_poll()':
button:56: error: 'Keyboard' was not declared in this scope
To make a USB Keyboard, use the Tools > USB Type menu
     Keyboard.set_modifier(0);
     ^
button:67: error: 'Keyboard' was not declared in this scope
To make a USB Keyboard, use the Tools > USB Type menu
     Keyboard.set_modifier(MODIFIERKEY_ALT);
     ^
button:87: error: 'Tormach' was not declared in this scope
   Tormach.button(0, b_feedhold);
   ^
encoder: In function 'bool encoder_poll()':
encoder:137: error: 'Tormach' was not declared in this scope
   Tormach.absolute(0, (cur_feed * 1023) / ENC_FEED_MAX);
   ^
In file included from /home/na/Arduino/tormach-pendant/teensy/tormach_controls/rgb_led.ino:11:0:
/home/na/arduino-tormach/hardware/teensy/avr/libraries/FastLED/src/FastLED.h: At global scope:
/home/na/arduino-tormach/hardware/teensy/avr/libraries/FastLED/src/FastLED.h:14:21: note: #pragma message: FastLED version 3.004.000
 #    pragma message "FastLED version 3.004.000"
                     ^
rgb_led: In function 'bool rgb_status_led_poll()':
rgb_led:53: error: 'Tormach' was not declared in this scope
   int r = Tormach.update();
           ^
serial: In function 'bool serial_poll()':
serial:126: error: 'Tormach' was not declared in this scope
         Tormach.absolute(3, r_axis);
         ^
'Tormach' was not declared in this scope

I haven't been able to figure out the issue so far.

@NigelHiggs30
Copy link
Author

NigelHiggs30 commented Dec 22, 2023

I figured out the issue I some how messed up this install command

steve@ubuntu-22:~/arduino-tormach/hardware/teensy/avr$ git clone -b tormach-controls https://github.com/makeitlabs/teensyduino-cores cores

new issue though

button: In function 'bool button_poll()':
button:58: warning: large integer implicitly truncated to unsigned type 
     Keyboard.set_key1(KEY_ESC);
                              ^
button:69: warning: large integer implicitly truncated to unsigned type 
     Keyboard.set_key1(KEY_F);
                            ^
In file included from /home/na/Arduino/tormach-pendant/teensy/tormach_controls/rgb_led.ino:11:0:
/home/na/arduino-tormach/hardware/teensy/avr/libraries/FastLED/src/FastLED.h: At global scope:
/home/na/arduino-tormach/hardware/teensy/avr/libraries/FastLED/src/FastLED.h:14:21: note: #pragma message: FastLED version 3.004.000
 #    pragma message "FastLED version 3.004.000"
                     ^
/tmp/arduino_build_94622/sketch/tormach_controls.ino.cpp.o: In function `HardwareSerial4::available()':
/home/na/arduino-tormach/hardware/teensy/avr/cores/teensy3/HardwareSerial.h:426: undefined reference to `serial4_available'
/tmp/arduino_build_94622/sketch/tormach_controls.ino.cpp.o: In function `HardwareSerial4::read()':
/home/na/arduino-tormach/hardware/teensy/avr/cores/teensy3/HardwareSerial.h:428: undefined reference to `serial4_getchar'
/tmp/arduino_build_94622/sketch/tormach_controls.ino.cpp.o: In function `serial_setup()':
/home/na/Arduino/tormach-pendant/teensy/tormach_controls/serial.ino:25: undefined reference to `HardwareSerial4::begin(unsigned long)'
/home/na/Arduino/tormach-pendant/teensy/tormach_controls/serial.ino:26: undefined reference to `Serial4'

not to worried about FastLED but don't even know where to begin with button_poll() and the HardwareSerial4 issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant