File tree Expand file tree Collapse file tree 4 files changed +9
-30
lines changed Expand file tree Collapse file tree 4 files changed +9
-30
lines changed Original file line number Diff line number Diff line change @@ -2942,26 +2942,6 @@ void Wippersnapper::connect() {
2942
2942
haltError (" Unable to allocate space for MQTT error topics" );
2943
2943
}
2944
2944
2945
- // TODO: We are debugging the "Failed to subscribe" issue here prior to
2946
- // runNetFSM Print out all topics generated by generateWSTopics()
2947
- WS_DEBUG_PRINTLN (" MQTT Topics:" );
2948
- WS_DEBUG_PRINT (" Device UID: " );
2949
- WS_DEBUG_PRINTLN (_device_uid);
2950
- // Broker topics only
2951
- WS_DEBUG_PRINT (" Broker-to-Device DS18x20 Topic: " );
2952
- WS_DEBUG_PRINTLN (WS._topic_signal_ds18_device );
2953
- WS_DEBUG_PRINT (" Broker-to-Device Servo Topic: " );
2954
- WS_DEBUG_PRINTLN (WS._topic_signal_servo_device );
2955
- WS_DEBUG_PRINT (" Broker-to-Device PWM Topic: " );
2956
- WS_DEBUG_PRINTLN (WS._topic_signal_pwm_device );
2957
- WS_DEBUG_PRINT (" Broker-to-Device Pixels Topic: " );
2958
- WS_DEBUG_PRINTLN (WS._topic_signal_pixels_device );
2959
- WS_DEBUG_PRINT (" Broker-to-Device UART Topic: " );
2960
- WS_DEBUG_PRINTLN (WS._topic_signal_uart_device );
2961
- WS_DEBUG_PRINT (" Broker-to-Device Display Topic: " );
2962
- WS_DEBUG_PRINTLN (WS._topic_signal_display_device );
2963
- delay (500 );
2964
-
2965
2945
// Connect to Network
2966
2946
WS_DEBUG_PRINTLN (" Running Network FSM..." );
2967
2947
// Run the network fsm
Original file line number Diff line number Diff line change 1
- # 1 " /var/folders/ff/dmzflvf52tq9kzvt6g8jglxw0000gn/T/tmpbebqve76 "
1
+ # 1 " /var/folders/ff/dmzflvf52tq9kzvt6g8jglxw0000gn/T/tmpnv6_o84f "
2
2
#include < Arduino.h>
3
3
# 1 " /Users/brentrubell/Documents/Arduino/libraries/Adafruit_Wippersnapper_Arduino/src/Wippersnapper_demo.ino"
4
4
# 16 " /Users/brentrubell/Documents/Arduino/libraries/Adafruit_Wippersnapper_Arduino/src/Wippersnapper_demo.ino"
Original file line number Diff line number Diff line change @@ -99,9 +99,6 @@ bool DisplayController::Handle_Display_Write(
99
99
// Get the driver instance for the display
100
100
DisplayHardware *display = nullptr ;
101
101
for (auto &hw_instance : _hw_instances) {
102
- // print hte _hw_instances name
103
- WS_DEBUG_PRINT (" [display] Checking hardware instance: " );
104
- WS_DEBUG_PRINTLN (hw_instance->getName ());
105
102
if (strcmp (hw_instance->getName (), msgWrite->name ) == 0 ) {
106
103
display = hw_instance;
107
104
break ;
@@ -115,6 +112,8 @@ bool DisplayController::Handle_Display_Write(
115
112
}
116
113
117
114
// Write the message to the display
115
+ WS_DEBUG_PRINT (" [display] Writing message to display: " );
116
+ WS_DEBUG_PRINTLN (msgWrite->message );
118
117
display->writeMessage (msgWrite->message );
119
118
return true ;
120
119
}
Original file line number Diff line number Diff line change @@ -39,10 +39,14 @@ class drvDispThinkInkGrayscale4Eaamfgn : public dispDrvBase {
39
39
40
40
// Initialize the display
41
41
_display->begin (mode);
42
+ // Configure display settings
43
+ _text_sz = 3 ;
44
+ _display->setTextSize (_text_sz);
45
+ _display->setTextColor (EPD_BLACK);
46
+ _display->setTextWrap (false );
42
47
// Clear the display buffer
43
48
_display->clearBuffer ();
44
49
_display->display ();
45
- _text_sz = 3 ; // Configure default magTag text size
46
50
47
51
return true ;
48
52
}
@@ -52,12 +56,8 @@ class drvDispThinkInkGrayscale4Eaamfgn : public dispDrvBase {
52
56
return ;
53
57
54
58
// Start with a fresh display buffer
55
- // and settings
59
+ _display-> clearBuffer ();
56
60
int16_t y_idx = 0 ;
57
- _display->clearDisplay ();
58
- _display->setTextSize (_text_sz);
59
- _display->setTextColor (EPD_BLACK);
60
- _display->setTextWrap (true );
61
61
_display->setCursor (0 , y_idx);
62
62
63
63
// Calculate the line height based on the text size (NOTE: base height is
You can’t perform that action at this time.
0 commit comments