|
"Henrik" <henrik.larsson@telia.com> wrote:
> Ingore the message where I wrote that the RCX didn´t start. It started
> without showing the "4th" on the lcd screen. Does anyone know how to do
> that? I mean that when you press the "ON - OFF" button it beeps and shows
> the "4th" or something. Just so you know that it´s on. I also wonder if
> anyone knows how to turn it off with the button after turning it on with it?
> If you turn it on by mistake or something.
From what I understood (I might be wrong) while the pbforth kernel is
running the buttons have no predefined action, so there's no way to make the
RCX sleep without using the terminal console. Of course you can do that in
your own program. If you need to stop & run your RCX without the console,
you must properly manage the buttons in your code, using a sort of
"supervisor". An example:
- Red button pressed: you put the RCX in sleep mode (OFF). When the red
button is pressed again, the code execution resumes from the next instrucion
and you're back. DO NOT exit back to the kernel otherwise you need the
terminal to restart your program.
- Green button: start/stop doing what your program is designed for.
- Gray or black button: stop the program and go back to kernel. From this
moment on you'll need the terminal to restart your program.
HTHAHIANW*
Mario
* Hope This Helps And Hope I Am Not Wrong: After all I'm the very last one
here :-)
|
|
Message has 1 Reply: | | RE: Ooooops!
|
| (...) You're right Mario. Like everyone else, I'm busy at my real job, but when I get time here and there I'm making improvements to the kernel. One idea was to provide multi-tasking built-in and having a standard button driver will help with (...) (24 years ago, 22-Mar-01, to lugnet.robotics.rcx.pbforth)
|
Message is in Reply To:
| | Ooooops!
|
| Ingore the message where I wrote that the RCX didn´t start. It started without showing the "4th" on the lcd screen. Does anyone know how to do that? I mean that when you press the "ON - OFF" button it beeps and shows the "4th" or something. Just so (...) (24 years ago, 21-Mar-01, to lugnet.robotics.rcx.pbforth)
|
3 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|