Pages: 1 ... 3 4 [5]   Go Down
Author Topic: SCoop - multitask and Simple COOPerative scheduler AVR & ARM  (Read 25203 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm confused. If I run this code in a "normal" loop, it prints the value:

void loop()
{

    String s1 = "abcde";
    Serial.println(s1);
}

But within the SCoop loop it fails (doesn't print anything):
void mytask::loop()
{
    String s1 = "abcde";
    Serial.println(s1);
}
Logged

Hertfordshire, U.K.
Offline Offline
Jr. Member
**
Karma: 2
Posts: 85
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Have you got a 'yield' somewhere in your main loop, such that processing is handed over to your 'mytask'?

Jim
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 26
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

hi fabriceo,

i´m looking for an easy and simple multitask/scheduler to get my project working.

These are the basic tasks i want to run:

- Pushbutton (short press/long press = Timer?)
- Write Serial (Bluetooth / Event based)
- Read Serial (Bluetooth / Event based)
- Update Display (Time or Event based)

I looked into your wiki and the tutorial to understand your scheduler.
Do you think it is possible to use SCoop with my project. I got only a  bit of expirience in programming, so your tutorial is not easy to read.
But if it is possible to ask you some questions if i got stuck in coding, then i will give SCoo a try.

I put a blog about my project online. If you want to have a look:
http://arduwin.blogspot.de/

Thx for your help!
Logged

Pages: 1 ... 3 4 [5]   Go Up
Jump to: