Skip to content

Confusion re building examples in pico-playground #50

@seamusdemora

Description

@seamusdemora

Sorry to have to ask, but I've got some doubts about my approach:

I need to use the sleep and/or dormant mode for an off-grid Pico project. I plan to use a RV-3028 as the RTC/interrupt source due to its accuracy and low power consumption.

I planned on using the examples in pico-playground to get me started, but I may have "missed a beat" somewhere along the line:

$ cd ~/pico/pico-playground
$  mkdir build 
$ cd build
$ export PICO_SDK_PATH=../../pico-sdk              # don't know if this was needed or not 
$ cmake .. 
$ cd sleep/hello_sleep
$ make -j2 
 . . .
[100%] Built target hello_sleep 
$ 

So here's where I'm confused. I had to descend two levels below ./build - into sleep/hello_sleep to get things to work. This doesn't feel right...

Should I be copying hello_sleep into /home/pi/pico/examples/build?? - instead of trying to set up pico-playground as a stand-alone set of examples??

TIA!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions