-
-
Notifications
You must be signed in to change notification settings - Fork 212
Fix library.properties for bundled libraries #340
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
29d6290
Library: make doom lib non legacy
facchinm 7099920
Libraries: modernize USBMSD library
facchinm a07afd0
Libraries: remove outdeted WiFi bindings
facchinm 70676ea
USBHOST: fix library.properties
facchinm 4c4c50a
Libraries: modernize USBHID library
facchinm 7c8cfce
Libraries: modernize RPC library
facchinm 92f7f53
Libraries: fix various misleading library.properties
facchinm cd474b8
USBHID: update examples
facchinm 590f115
Libraries: modernize *_System libs
facchinm 606ec02
Fix Portenta_lvgl example
facchinm 06ae571
Doom: fix example sketch and remove binaries
facchinm f2095ae
Portenta_Video: hide library
facchinm b5b3aec
Libraries: modernize SDCARD
facchinm 3eae8b7
Libraries: modernize Portenta_Camera
facchinm cba214e
Libraries: modernize Portenta_SDRAM and add example
facchinm a109746
Libraries: Portenta_lvgl: fix examples and rename library
facchinm 4424b33
Modernize Portenta_Video and readd example
facchinm f3de8b0
Apply suggestions from code review
facchinm 981209c
lvgl: add compatibility layer for both v7 and v8
marqdevx 15e344b
Add missing library dependency to "smoke test" CI workflow
per1234 d600f09
Expand "smoke test" CI workflow to cover new examples
per1234 0ebf94f
GH: CI: add lvgl v8 to test matrix
facchinm File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
176 changes: 0 additions & 176 deletions
176
libraries/LittleVGL/examples/Portenta_lvgl/Portenta_lvgl.ino
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
name=Nano33BLE_System | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This tutorial will need to be updated to account for the "Nano33_System" -> "Nano33BLE_System" name change: CC: @sebromero |
||
version=1.0 | ||
author=Arduino | ||
maintainer=Arduino <[email protected]> | ||
sentence=Utility library for Nano 33 BLE | ||
paragraph= | ||
category=Other | ||
url=https://github.com/arduino/ArduinoCore-mbed/tree/master/libraries/Nano33BLE_System | ||
architectures=mbed,mbed_nano |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
name=Nicla_System | ||
version=1.0 | ||
author=Arduino | ||
maintainer=Arduino <[email protected]> | ||
sentence=Utility library for Nicla Sense ME | ||
paragraph= | ||
category=Other | ||
url=https://github.com/arduino/ArduinoCore-mbed/tree/master/libraries/Nicla_System | ||
architectures=mbed,mbed_nicla |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
name=Portenta_Camera | ||
version=1.0 | ||
author=Arduino | ||
maintainer=Arduino <[email protected]> | ||
sentence=Camera library for Portenta H7 Vision Shield | ||
paragraph= | ||
category=Other | ||
url=https://github.com/arduino/ArduinoCore-mbed/tree/master/libraries/Portenta_Camera | ||
architectures=mbed,mbed_portenta |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
name=Portenta_SDCARD | ||
version=1.0 | ||
author=Arduino | ||
maintainer=Arduino <[email protected]> | ||
sentence=SDCARD library for Portenta H7 | ||
paragraph= | ||
category=Data Storage | ||
url=https://github.com/arduino/ArduinoCore-mbed/tree/master/libraries/Portenta_SDCARD | ||
architectures=mbed,mbed_portenta |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
70 changes: 70 additions & 0 deletions
70
libraries/Portenta_SDRAM/examples/SDRAM_operations/SDRAM_operations.ino
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
/* | ||
How to interact with external SDRAM on Portenta H7 | ||
|
||
The board comes with an hefty 8MB of external fast RAM, which can be used: | ||
- as a framebuffer (raw mode) | ||
- as an expansion of on-chip RAM to store "standard" data | ||
|
||
This example shows both the usages | ||
*/ | ||
|
||
#include "SDRAM.h" | ||
|
||
REDIRECT_STDOUT_TO(Serial); | ||
|
||
void nonFrameBuffer() { | ||
// Initilize SDRAM for non-framebuffer operations | ||
SDRAM.begin(); // is the same as SDRAM.begin(SDRAM_START_ADDRESS); | ||
|
||
// Now we can malloc() and free() in the whole RAM space | ||
// For example, let's create a 7MB array | ||
uint8_t* myVeryBigArray = (uint8_t*)SDRAM.malloc(7 * 1024 * 1024); | ||
|
||
// and a small one | ||
uint8_t* mySmallArray = (uint8_t*)SDRAM.malloc(128); | ||
|
||
// and use then as usual | ||
for (int i = 0; i<128; i++) { | ||
myVeryBigArray[i] = i; | ||
mySmallArray[i] = i*2; | ||
} | ||
|
||
// free the memory when you don't need them anymore | ||
SDRAM.free(myVeryBigArray); | ||
} | ||
|
||
void frameBuffer() { | ||
// In case we want a framebuffer-like area at the beginning of the flash, | ||
// simply initialize the memory as | ||
|
||
SDRAM.begin(SDRAM_START_ADDRESS + 2 * 1024 * 1024); | ||
// 2MB of contiguous memory available at the beginning | ||
|
||
uint32_t* framebuffer = (uint32_t*)SDRAM_START_ADDRESS; | ||
|
||
// We can't allocate anymore the huge 7MB array | ||
|
||
uint8_t* myVeryBigArray = (uint8_t*)SDRAM.malloc(7 * 1024 * 1024); | ||
if (myVeryBigArray == NULL) { | ||
Serial.println("Oops, too big :)"); | ||
} | ||
|
||
} | ||
|
||
void setup() { | ||
Serial.begin(115200); | ||
while (!Serial); | ||
|
||
frameBuffer(); | ||
// Uncomment to test the other functionality | ||
// nonFrameBuffer(); | ||
|
||
// Sort of memtest for stability, useful for testing when overclocking | ||
if (SDRAM.test()) { | ||
Serial.println("SDRAM completely functional"); | ||
} | ||
} | ||
|
||
void loop() { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
name=Portenta_SDRAM | ||
version=1.0 | ||
author=Arduino | ||
maintainer=Arduino <[email protected]> | ||
sentence=Interact with external SDRAM chip on Portenta H7 | ||
paragraph= | ||
category=Other | ||
url=https://github.com/arduino/ArduinoCore-mbed/tree/master/libraries/Portenta_SDRAM | ||
architectures=mbed,mbed_portenta |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
name=Portenta_System | ||
version=1.0 | ||
author=Arduino | ||
maintainer=Arduino <[email protected]> | ||
sentence=Utility library for Portenta H7 | ||
paragraph= | ||
category=Other | ||
url=https://github.com/arduino/ArduinoCore-mbed/tree/master/libraries/Portenta_System | ||
architectures=mbed,mbed_portenta |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
// placeholder to display the library examples |
Empty file.
27 changes: 27 additions & 0 deletions
27
libraries/Portenta_Video/examples/ArduinoLogo/ArduinoLogo.ino
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#include "Portenta_lvgl.h" | ||
#include "Portenta_Video.h" | ||
#include "image.h" | ||
|
||
// Alternatively, any raw RGB565 image can be included on demand using this macro | ||
/* | ||
#define INCBIN_PREFIX | ||
#include "incbin.h" | ||
INCBIN(test, "/home/user/Downloads/test.bin"); | ||
*/ | ||
|
||
int offset; | ||
|
||
void setup() { | ||
portenta_init_video(); | ||
|
||
stm32_LCD_Clear(0); | ||
stm32_LCD_Clear(0); | ||
|
||
offset = ((stm32_getXSize() - 300)) + (stm32_getXSize() * (stm32_getYSize() - 300) / 2) * sizeof(uint16_t); | ||
} | ||
|
||
void loop() { | ||
// Replace texture_raw with testData if using the INCBIN method | ||
// Also, replace 300x300 resolution with the actual one | ||
stm32_LCD_DrawImage((void*)texture_raw, (void *)(getNextFrameBuffer() + offset), 300, 300, DMA2D_INPUT_RGB565); | ||
} |
2 changes: 1 addition & 1 deletion
2
...e_video_coreboot/image_320x240_argb8888.h → ...rtenta_Video/examples/ArduinoLogo/image.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At the time I made the suggestion to add this, the code was not compatible with 8.x, so I pinned to the last of the 7.x series. It looks like that limitation has since been lifted. The pin isn't necessary for the sake of the workflow or action so you are free to configure it as you like. I see it was already unpinned for the
arduino:mbed:envie_m4
compilations.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 , I'd leave one on 7.11 and one on 8.0.2 to make sure it still compiles in both 😉