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

Joystick and Display Support #57

Open
paulkilroy opened this issue Oct 28, 2021 · 9 comments
Open

Joystick and Display Support #57

paulkilroy opened this issue Oct 28, 2021 · 9 comments

Comments

@paulkilroy
Copy link
Contributor

I wrote some code to support a 3 axis joystick and the heltec onboard display. I'd love to merge it into this branch rather than a fork. Let me know if there is interest and I'll clean it up...

It's very useful for me to use with the tally light system so there is just one master connecting to the ATEM.

Here's a link to the display and joystick in the background.

https://ibb.co/zsx57q8

@AronHetLam
Copy link
Owner

I'm not sure i understand what you're using the joystick for. Are you controlling PTZ cameras with it?

You can start by forking it, and make a PR from there.
If it runs on ESP32 I'd like for the added features to only compile for the ESP32, as I think the ESP8266 would have a hard time keeping up.

@paulkilroy
Copy link
Contributor Author

Yes - Its will look use your atem code to find the camera on preview and control that via visca ip protocol. Camera IPs are added to the config webpage and stored in the eeprom. I'll let you know when the code is cleaned up and ready.

@AronHetLam
Copy link
Owner

What libraries do you use? I can't compile it.

@paulkilroy
Copy link
Contributor Author

paulkilroy commented Dec 5, 2021 via email

@AronHetLam
Copy link
Owner

Ahh. Yes, preferably it should be more generic. I tried just downloading heltic libraries, but that only solved some of the problems. I probably need the board manager.

@paulkilroy
Copy link
Contributor Author

paulkilroy commented Dec 6, 2021 via email

@AronHetLam
Copy link
Owner

First and only error:
CameraControl:3:20: fatal error: heltec.h: No such file or directory

After installing `Heltec ESP32 Dev-Boards` library (expand me)

CameraControl:4:1: error: 'SSD1306Wire' does not name a type
 SSD1306Wire *display;
 ^
C:\Users\aronh\source\repos\AronHetLam\ATEM_tally_light_with_ESP8266\ATEM_tally_light\CameraControl.ino: In function 'void cameraControlSetup()':
CameraControl:30:3: error: 'display' was not declared in this scope
   display = Heltec.display;
   ^
CameraControl:30:20: error: 'class Heltec_ESP32' has no member named 'display'
   display = Heltec.display;
                    ^
C:\Users\aronh\source\repos\AronHetLam\ATEM_tally_light_with_ESP8266\ATEM_tally_light\CameraControl.ino: In function 'void displayCalibrateScreen(String, int)':
CameraControl:87:3: error: 'display' was not declared in this scope
   display->clear();
   ^
CameraControl:88:20: error: 'ArialMT_Plain_24' was not declared in this scope
   display->setFont(ArialMT_Plain_24);
                    ^
CameraControl:89:29: error: 'TEXT_ALIGN_CENTER' was not declared in this scope
   display->setTextAlignment(TEXT_ALIGN_CENTER);
                             ^
CameraControl:90:23: error: 'DISPLAY_WIDTH' was not declared in this scope
   display->drawString(DISPLAY_WIDTH / 2, 0 , "Calibrating...");
                       ^
CameraControl:93:20: error: 'ArialMT_Plain_16' was not declared in this scope
   display->setFont(ArialMT_Plain_16);
                    ^
CameraControl:97:31: error: 'DISPLAY_HEIGHT' was not declared in this scope
   display->drawProgressBar(0, DISPLAY_HEIGHT - 11, 120, 10, pct);
                               ^
C:\Users\aronh\source\repos\AronHetLam\ATEM_tally_light_with_ESP8266\ATEM_tally_light\CameraControl.ino: In function 'void displayLoop(int, int, int)':
CameraControl:221:3: error: 'display' was not declared in this scope
   display->clear();
   ^
CameraControl:224:29: error: 'DISPLAY_WIDTH' was not declared in this scope
     display->fillRect(0, 0, DISPLAY_WIDTH, 25);
                             ^
CameraControl:225:24: error: 'BLACK' was not declared in this scope
     display->setColor( BLACK );
                        ^
CameraControl:227:20: error: 'ArialMT_Plain_24' was not declared in this scope
   display->setFont(ArialMT_Plain_24);
                    ^
CameraControl:228:29: error: 'TEXT_ALIGN_LEFT' was not declared in this scope
   display->setTextAlignment(TEXT_ALIGN_LEFT);
                             ^
CameraControl:230:28: error: 'DISPLAY_WIDTH' was not declared in this scope
   display->drawLine(0, 25, DISPLAY_WIDTH, 25);
                            ^
CameraControl:232:22: error: 'WHITE' was not declared in this scope
   display->setColor( WHITE );
                      ^
CameraControl:233:20: error: 'ArialMT_Plain_10' was not declared in this scope
   display->setFont(ArialMT_Plain_10);
                    ^
CameraControl:243:20: error: 'ArialMT_Plain_16' was not declared in this scope
   display->setFont(ArialMT_Plain_16);
                    ^
CameraControl:244:29: error: 'TEXT_ALIGN_RIGHT' was not declared in this scope
   display->setTextAlignment(TEXT_ALIGN_RIGHT);
                             ^
C:\Users\aronh\source\repos\AronHetLam\ATEM_tally_light_with_ESP8266\ATEM_tally_light\CameraControl.ino: In function 'void drawBoolean(int, int, int, boolean)':
CameraControl:258:5: error: 'display' was not declared in this scope
     display->fillRect( x, y, sz, sz );
     ^
CameraControl:260:5: error: 'display' was not declared in this scope
     display->drawRect( x, y, sz, sz );
     ^

I don't think it's the correct heltec lib, and it can't find the SSD1306Wire lib.

@paulkilroy
Copy link
Contributor Author

paulkilroy commented Dec 6, 2021 via email

@jpdd521
Copy link

jpdd521 commented Aug 6, 2022

我编写了一些代码来支持3轴操纵杆和heltec板载显示器。我很想把它合并到这个分支中,而不是一个分支。让我知道是否有兴趣,我会清理它...

与Tally Light系统一起使用对我来说非常有用,因此只有一个主站连接到ATEM。

这是背景中显示器和操纵杆的链接。

https://ibb.co/zsx57q8

3 axis joystick ,control that via visca ip protocol,做好了吗?

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

3 participants