File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22#include " oscilloscope.h"
33#include " static_malloc.h"
44
5- constexpr size_t bufSize = 1024 * 200 ; // 100kB memory pool ...
6- uint8_t myHeap[bufSize]; // ... on external RAM
5+ constexpr size_t bufSize = 1024 * 200 ; // 200kB memory pool ...
6+ EXTMEM uint8_t myHeap[bufSize]; // ... on external RAM
77
88// ----------------------
99
@@ -15,8 +15,8 @@ void setup()
1515{
1616 sm_set_default_pool (myHeap, bufSize, false , nullptr ); // initialize memory pool
1717
18- pinMode (stopPin, INPUT_PULLUP ); // pin to stop measurement and print results
19- scope.begin (0 , 1'000 ); // scope on pin 0 with buffer for 1k transitions (class uses buffer from mem pool)
18+ pinMode (stopPin, INPUT_PULLUP ); // pin to stop measurement and print results
19+ scope.begin (0 , 1'000 ); // scope on pin 0 with buffer for 1k transitions (class uses buffer from mem pool)
2020
2121 while (!Serial){}
2222 Serial.printf (" Measuring... press button on pin %u to stop and print results\n " , stopPin);
You can’t perform that action at this time.
0 commit comments