Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<arduinoPlatform.h>
- #include<tasks.h>
- #include<interrupts.h>
- #include<stdio.h>
- #include<serial.h>
- #include <pwm.h>
- #include<data.h>
- extern serial Serial;
- void serial_check(int id, void* ptrt){
- if(Serial.available()){ //koristim if jer uzimam ceo red, tj. cim je nesto dostupno ja uzimam SVE
- char *s = Serial.readString();
- Serial.writeln(s);
- }
- }
- void setup()
- {
- Serial.begin(9600);
- createTask(serial_check, 100, TASK_ENABLE, NULL);
- }
- void loop()
- {
- }
Advertisement
Add Comment
Please, Sign In to add comment