-
-
Notifications
You must be signed in to change notification settings - Fork 213
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
Changes from all commits
29d6290
7099920
a07afd0
70676ea
4c4c50a
7c8cfce
92f7f53
cd474b8
590f115
606ec02
06ae571
f2095ae
b5b3aec
3eae8b7
cba214e
a109746
4424b33
f3de8b0
981209c
15e344b
d600f09
0ebf94f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
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 |
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 |
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 |
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 |
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() { | ||
|
||
} |
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 |
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 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
// placeholder to display the library examples |
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); | ||
} |
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 😉