Skip to content
Open
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/_P036_FrameOLED.ino
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,7 @@ boolean Plugin_036(uint8_t function, struct EventStruct *event, String& string)
const int optionValues[] =
{ static_cast<int>(p036_resolution::pix128x64),
static_cast<int>(p036_resolution::pix128x32),
static_cast<int>(p036_resolution::pix72x40),
static_cast<int>(p036_resolution::pix64x48) };
OLedFormSizes(F("size"), optionValues, P036_RESOLUTION, true);
}
Expand Down
3 changes: 2 additions & 1 deletion src/src/Helpers/OLed_helper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ void OLedFormSizes(const __FlashStringHelper *id,
const __FlashStringHelper *options3[] = {
F("128x64"),
F("128x32"),
F("72x40"),
F("64x48") };
FormSelectorOptions selector(NR_ELEMENTS(options3), options3, values);
selector.reloadonchange = reloadOnChange;
Expand Down Expand Up @@ -128,4 +129,4 @@ bool OLedI2CAddressCheck(uint8_t function,
}
return success;
}
#endif
#endif
8 changes: 8 additions & 0 deletions src/src/PluginStructs/P036_data_struct.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,10 @@ constexpr tSizeSettings SizeSettings[] = {
2, // max. line count
113, 15 // WiFi indicator
},
{ 72, 40, 28, // 72x40
3, // max. line count
28, 12 // WiFi indicator
},
Comment thread
andbad marked this conversation as resolved.
Outdated
{ 64, 48, 32, // 64x48
3, // max. line count
32, 10 // WiFi indicator
Expand Down Expand Up @@ -1164,6 +1168,8 @@ tIndividualFontSettings P036_data_struct::CalculateIndividualFontSettings(uint8_
break;
case p036_resolution::pix128x32: lSpace = -2;
break;
case p036_resolution::pix72x40: lSpace = -1;
break;
case p036_resolution::pix64x48: lSpace = -1;
break;
}
Expand Down Expand Up @@ -1308,6 +1314,8 @@ tFontSettings P036_data_struct::CalculateFontSettings(uint8_t lDefaultLines) {
break;
case p036_resolution::pix128x32: result.Space = -2;
break;
case p036_resolution::pix72x40: result.Space = -1;
break;
case p036_resolution::pix64x48: result.Space = -1;
break;
}
Expand Down
3 changes: 2 additions & 1 deletion src/src/PluginStructs/P036_data_struct.h
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,8 @@ enum class eHeaderContent : uint8_t {
enum class p036_resolution : uint8_t {
pix128x64 = 0u,
pix128x32 = 1u,
pix64x48 = 2u
Comment thread
TD-er marked this conversation as resolved.
pix72x40 = 2u,
pix64x48 = 4u
};

enum class ePageScrollSpeed : uint8_t {
Expand Down