Englebert 3 years ago
parent
commit
58a00e81a0
  1. BIN
      OpenSCAD/M5CoreTX-V1.stl
  2. 97390
      OpenSCAD/TT_gimbal-bottom.gcode
  3. 26486
      OpenSCAD/bars-bottom.gcode
  4. BIN
      OpenSCAD/bars-bottom.stl
  5. 27521
      OpenSCAD/bars-top.gcode
  6. BIN
      OpenSCAD/bars-top.stl
  7. 76430
      OpenSCAD/battery_holder.gcode
  8. BIN
      OpenSCAD/battery_holder.stl
  9. 42577
      OpenSCAD/bottom_center_holder.gcode
  10. BIN
      OpenSCAD/bottom_center_holder.stl
  11. 8493
      OpenSCAD/bottom_extenders.gcode
  12. BIN
      OpenSCAD/bottom_extenders.stl
  13. 84571
      OpenSCAD/bottom_h.gcode
  14. BIN
      OpenSCAD/bottom_h.stl
  15. BIN
      OpenSCAD/bottom_leg.stl
  16. 117516
      OpenSCAD/bottom_legs.gcode
  17. BIN
      OpenSCAD/bottom_legs.stl
  18. 17736
      OpenSCAD/gimbal-bottom-left.gcode
  19. BIN
      OpenSCAD/gimbal-bottom-left.stl
  20. 18314
      OpenSCAD/gimbal-bottom-right.gcode
  21. BIN
      OpenSCAD/gimbal-bottom-right.stl
  22. 25660
      OpenSCAD/gimbal-bottom.gcode
  23. BIN
      OpenSCAD/gimbal-bottom.stl
  24. 216645
      OpenSCAD/gimbal-protector.gcode
  25. 90339
      OpenSCAD/gimbal-ring.gcode
  26. BIN
      OpenSCAD/gimbal-ring.stl
  27. 39640
      OpenSCAD/gimbal-top-left.gcode
  28. BIN
      OpenSCAD/gimbal-top-left.stl
  29. 39497
      OpenSCAD/gimbal-top-right.gcode
  30. BIN
      OpenSCAD/gimbal-top-right.stl
  31. 86546
      OpenSCAD/gimbal-top.gcode
  32. BIN
      OpenSCAD/gimbal-top.stl
  33. 60987
      OpenSCAD/m5core2-center.gcode
  34. BIN
      OpenSCAD/m5core2-center.stl
  35. 30964
      OpenSCAD/top_cover.gcode
  36. BIN
      OpenSCAD/top_cover.stl
  37. 4000
      OpenSCAD/top_spacers.gcode
  38. BIN
      OpenSCAD/top_spacers.stl
  39. 40
      src/StickPositions.cpp
  40. 21
      src/StickPositions.h
  41. 15
      upgrade.py

BIN
OpenSCAD/M5CoreTX-V1.stl

97390
OpenSCAD/TT_gimbal-bottom.gcode
File diff suppressed because it is too large
View File

26486
OpenSCAD/bars-bottom.gcode
File diff suppressed because it is too large
View File

BIN
OpenSCAD/bars-bottom.stl

27521
OpenSCAD/bars-top.gcode
File diff suppressed because it is too large
View File

BIN
OpenSCAD/bars-top.stl

76430
OpenSCAD/battery_holder.gcode
File diff suppressed because it is too large
View File

BIN
OpenSCAD/battery_holder.stl

42577
OpenSCAD/bottom_center_holder.gcode
File diff suppressed because it is too large
View File

BIN
OpenSCAD/bottom_center_holder.stl

8493
OpenSCAD/bottom_extenders.gcode
File diff suppressed because it is too large
View File

BIN
OpenSCAD/bottom_extenders.stl

84571
OpenSCAD/bottom_h.gcode
File diff suppressed because it is too large
View File

BIN
OpenSCAD/bottom_h.stl

BIN
OpenSCAD/bottom_leg.stl

117516
OpenSCAD/bottom_legs.gcode
File diff suppressed because it is too large
View File

BIN
OpenSCAD/bottom_legs.stl

17736
OpenSCAD/gimbal-bottom-left.gcode
File diff suppressed because it is too large
View File

BIN
OpenSCAD/gimbal-bottom-left.stl

18314
OpenSCAD/gimbal-bottom-right.gcode
File diff suppressed because it is too large
View File

BIN
OpenSCAD/gimbal-bottom-right.stl

25660
OpenSCAD/gimbal-bottom.gcode
File diff suppressed because it is too large
View File

BIN
OpenSCAD/gimbal-bottom.stl

216645
OpenSCAD/gimbal-protector.gcode
File diff suppressed because it is too large
View File

90339
OpenSCAD/gimbal-ring.gcode
File diff suppressed because it is too large
View File

BIN
OpenSCAD/gimbal-ring.stl

39640
OpenSCAD/gimbal-top-left.gcode
File diff suppressed because it is too large
View File

BIN
OpenSCAD/gimbal-top-left.stl

39497
OpenSCAD/gimbal-top-right.gcode
File diff suppressed because it is too large
View File

BIN
OpenSCAD/gimbal-top-right.stl

86546
OpenSCAD/gimbal-top.gcode
File diff suppressed because it is too large
View File

BIN
OpenSCAD/gimbal-top.stl

60987
OpenSCAD/m5core2-center.gcode
File diff suppressed because it is too large
View File

BIN
OpenSCAD/m5core2-center.stl

30964
OpenSCAD/top_cover.gcode
File diff suppressed because it is too large
View File

BIN
OpenSCAD/top_cover.stl

4000
OpenSCAD/top_spacers.gcode
File diff suppressed because it is too large
View File

BIN
OpenSCAD/top_spacers.stl

40
src/StickPositions.cpp

@ -0,0 +1,40 @@
#include "StickPositions.h"
StickPositions::StickPositions(void) {
updated = true;
}
void StickPositions::begin(void) {
updated = true;
}
void StickPositions::main(TFT_eSprite *m) {
if((uint32_t) (millis() - last_updated) > 50) {
updated = true;
}
if(updated) {
m->fillRect(0, 0, 320, 240, BLACK);
m->setTextColor(WHITE, BLACK);
m->setTextSize(2);
m->setCursor(0,0);
m->print("Stick Positions");
// Update screen
m->pushSprite(0,0);
updated = false;
last_updated = millis();
}
// Key Input Handler
if(M5.BtnC.wasPressed()) {
screen.current_screen = SCREEN_MENU;
screen.updated = true;
}
}
StickPositions stickpositions;

21
src/StickPositions.h

@ -0,0 +1,21 @@
#ifndef _STICK_POSITIONS_H
#define _STICK_POSITIONS_H
#include <Arduino.h>
#include <M5Core2.h>
#include "Inputs.h"
#include "Screen.h"
class StickPositions {
public:
StickPositions(void);
void begin(void);
void main(TFT_eSprite *m);
bool updated = false;
private:
uint32_t last_updated = 0;
};
extern StickPositions stickpositions;
#endif

15
upgrade.py

@ -0,0 +1,15 @@
#!/usr/bin/python3
import requests
import sys
### print (sys.argv)
### print(len(sys.argv))
if len(sys.argv) < 3:
print("Invalid parameters\n")
exit
filename = sys.argv[2]
url = sys.argv[1]
files = {'file': open(filename, 'rb')}
final_resp = requests.post(url, files=files)
Loading…
Cancel
Save