Skip to content

Commit d4e5962

Browse files
V2.18 Updates
- Added support for InfoDisplays - Fixed PI constant
1 parent 46a449d commit d4e5962

3 files changed

Lines changed: 27 additions & 3 deletions

File tree

public/images/oledsmall.png

160 KB
Loading

src/modules/Home.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const Home = (props) => {
1313
<div className="intro-link-child">
1414
<h3 className="intro-header">OAT/OAM FIRMWARE CONFIGURATION</h3>
1515
<a className="intro-link" href="steps">START</a>
16-
<p className="version">V2.17</p>
16+
<p className="version">V2.18</p>
1717
</div>
1818
</div>
1919

src/modules/WizardStep.jsx

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -760,7 +760,7 @@ const WizardStep = (props) => {
760760
{
761761
id: 'DY',
762762
title: 'Display',
763-
label: 'What kind of display are you using:',
763+
label: 'What kind of interactive display are you using:',
764764
variable: 'display',
765765
define: 'DISPLAY_TYPE',
766766
preamble: ['////////////////////////////////', '// Display configuration ', '// Define the type of display we are using. Currently: {v}'],
@@ -775,6 +775,30 @@ const WizardStep = (props) => {
775775
]
776776
},
777777
},
778+
{
779+
id: 'IDY',
780+
title: 'Informational Display',
781+
label: 'What kind of information display are you using:',
782+
variable: 'infodisplay',
783+
condition: "($display == NO)",
784+
preamble: ['////////////////////////////////', '// InfoDisplay configuration ', '// Define the type of info display we are using. Currently: {v}'],
785+
control: {
786+
type: 'radioimg',
787+
choices: [
788+
{ key: 'NO', value: 'No info display', image: '/images/none.png', additionalLines: ['#define INFO_DISPLAY_TYPE INFO_DISPLAY_TYPE_NONE'] },
789+
{ key: 'OLED', value: 'I2C 128x64 OLED display', image: '/images/oledsmall.png', additionalLines: ['#define INFO_DISPLAY_TYPE INFO_DISPLAY_TYPE_I2C_SSD1306_128x64'] },
790+
]
791+
},
792+
postamble: [
793+
{ literal: ['#define INFO_DISPLAY_I2C_ADDRESS 0x3C'] },
794+
{ literal: ['#define INFO_DISPLAY_I2C_SDA_PIN 20'] },
795+
{ literal: ['#define INFO_DISPLAY_I2C_SCL_PIN 21'] },
796+
{
797+
literal: ['// Note that the E1 port is not usable since I2C requires pin 21!'],
798+
condition: "($board == M10) OR ($board == M20) OR ($board == M21)",
799+
},
800+
],
801+
},
778802
{
779803
id: 'WW',
780804
title: 'Use WiFi',
@@ -1082,7 +1106,7 @@ const WizardStep = (props) => {
10821106
'// AZ parameters will require tuning according to your setup',
10831107
'',
10841108
'// If you have a custom solution involving a rod you can uncomment and use the next 3 lines for calculations',
1085-
'// #define AZ_CIRCUMFERENCE (115 * 2 * 3.1515927) // the circumference of the circle where the movement is anchored',
1109+
'// #define AZ_CIRCUMFERENCE (115 * 2 * 3.1415927) // the circumference of the circle where the movement is anchored',
10861110
'// #define AZ_ROD_PITCH 1.0f // mm per full rev of stepper',
10871111
'// #define AZIMUTH_STEPS_PER_REV (AZ_CIRCUMFERENCE / AZ_ROD_PITCH * AZ_STEPPER_SPR * AZ_MICROSTEPPING) // Steps needed to turn AZ 360deg',
10881112
'',

0 commit comments

Comments
 (0)