Skip to content

Commit e7f84b9

Browse files
authored
Update Scope.ino
1 parent 563520b commit e7f84b9

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

examples/Scope/Scope.ino

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
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);

0 commit comments

Comments
 (0)