Skip to content

Commit 627b89c

Browse files
committed
added comment about memory ranges
1 parent bdeb167 commit 627b89c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

examples/DS3234_RTC_SRAM_Demo/DS3234_RTC_SRAM_Demo.ino

+5
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,11 @@ void setup() {
133133
// on Wikipedia: https://en.wikipedia.org/wiki/Template_(C%2B%2B).
134134
// However, understanding how it works under the hood is by no means necessary! :-)
135135

136+
// Note:
137+
// *You* are responsible for non-overlapping memory ranges. If you write some data type with
138+
// a width of, say, four byte to SRAM address x, the next value to store can start at SRAM
139+
// address x+4 (because locatons x, x+1, x+2 and x+3 are already in use).
140+
136141
// Warning 1:
137142
// writeToSRAM() readFromSRAM() do *not* take byte-ordering (i.e. "endian-ness") into
138143
// account. If you want to write data to SRAM of the DS3234 one one type of micro

0 commit comments

Comments
 (0)