Skip to content

Commit 4c5e0cd

Browse files
committed
Small changes
1 parent 48b7c7f commit 4c5e0cd

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

docs/components.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,9 @@ This modal is based on [svelte-modals](https://svelte-modals.mattjennings.io/) w
159159
🌙
160160
## MoonBase components
161161

162+
Renderer: Takes JSON definitions and based on the type property shows a specific widget (e.g. input, checkbox, dropdown, ...)
163+
Widget: Complex, interactive components with editing capabilities
164+
162165
<img width="30" src="https://github.com/user-attachments/assets/b0e8af99-ed76-422a-8bd1-bfbd9e0f4c44"/>
163166

164167
### FieldRenderer
@@ -174,8 +177,14 @@ Support for html input widgets including text, number, range, checkbox and pad (
174177
* Uses FieldRenderer
175178
* Used data and definition rest apis
176179

180+
### EditRowWidget
181+
182+
Shows all fields of a row (using FieldRenderer) in a popup
183+
177184
### FileEditWidget
178185

186+
Shows filename, file contents and uploadfile (from file system). Used in FileManager and FieldRenderer (select widgets containing files, which can directly be edited - for livescripts)
187+
179188
Arguments
180189

181190
* path: file or folder to edit

src/MoonBase/Modules/ModuleIO.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -475,8 +475,8 @@ class ModuleIO : public Module {
475475
pinAssigner.assignPin(19, pin_SDIO_PIN_CMD); // ESP-Hosted WiFi pins
476476
pinAssigner.assignPin(24, pin_Reserved); // USB Pins
477477
pinAssigner.assignPin(25, pin_Reserved); // USB Pins
478-
uint8_t ethernetPins[6] = {28, 29, 30, 31, 34, 35};
479-
for (int i = 0; i < sizeof(ethernetPins); i++) pinAssigner.assignPin(ethernetPins[i], pin_Ethernet); // Ethernet Pins
478+
uint8_t ethernetPins[] = {28, 29, 30, 31, 34, 35};
479+
for (uint8_t gpio : ethernetPins) pinAssigner.assignPin(gpio, pin_Ethernet);
480480
pinAssigner.assignPin(37, pin_Serial_TX);
481481
pinAssigner.assignPin(38, pin_Serial_RX);
482482
// 24-25 is is USB, but so is 26-27 but they're exposed on the header and work OK for pin outout.

0 commit comments

Comments
 (0)