Factor/Fix generic resources
Now the old GENERIC_RESOURCE macros works again (but usage has changed). Common resources (battery, leds, radio) are now in resources-common.
This commit is contained in:
parent
76e39b2b5d
commit
baaa2c5741
59 changed files with 440 additions and 2705 deletions
|
@ -25,10 +25,10 @@ void setup (void)
|
|||
{
|
||||
arduino_pwm_timer_init ();
|
||||
rest_init_engine ();
|
||||
rest_activate_resource (&resource_led_pwm);
|
||||
rest_activate_resource (&resource_led_period);
|
||||
rest_activate_resource (&resource_analog2_voltage);
|
||||
rest_activate_resource (&resource_analog5_voltage);
|
||||
rest_activate_resource (&res_led_pwm, "led/pwm");
|
||||
rest_activate_resource (&res_led_period, "led/period");
|
||||
rest_activate_resource (&res_analog2_voltage, "analog/2");
|
||||
rest_activate_resource (&res_analog5_voltage, "analog/5");
|
||||
}
|
||||
|
||||
void loop (void)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue