Looking for a little guidance. I would like to run code as well as have access to the REPL.
As a simplified example I would like to read from an accelerometer periodically and put the data in ram. While this is running and collecting the data I would like to have access to the REPL so I could do a accel.get_data().
@pythoncoder has put together a wonderfully simple scheduler I'm using.
https://github.com/peterhinch/Micropython-scheduler
Ideally, I would like to call pyexec_friendly_repl() as a task in the scheduler and everything would be good. I am sure it is not this easy but seems like it might be possible. Any help appreciated. Thanks.
Running REPL with code running
Re: Running REPL with code running
I suppose you could run your accelerometer-checking code from a timer interrupt.