mirror of
https://github.com/Derisis13/Shutter.git
synced 2025-12-07 03:42:48 +01:00
Version 1.1: Second working version. First commit. Added features: disabling channels for the day by having the same raise and lower timings.
This commit is contained in:
43
mozgatas_demo.c
Normal file
43
mozgatas_demo.c
Normal file
@@ -0,0 +1,43 @@
|
||||
//
|
||||
// Created by lacko on 19/08/2021.
|
||||
//
|
||||
|
||||
#include "mozgatas_demo.h"
|
||||
#include <stdio.h>
|
||||
|
||||
void set_ch (redony *r)
|
||||
{
|
||||
reset ();
|
||||
for (int i = 1; i <= r->ch; ++i)
|
||||
printf ("ch. %d\n", i);
|
||||
}
|
||||
|
||||
|
||||
void export ()
|
||||
{
|
||||
printf ("gpios exported\n");
|
||||
}
|
||||
|
||||
//reset láb active low, de negatív logikával van bekötve
|
||||
void reset ()
|
||||
{
|
||||
printf ("remote reset\n");
|
||||
}
|
||||
|
||||
void press_button (buttons b)
|
||||
{
|
||||
switch (b)
|
||||
{
|
||||
case up: printf ("up\n");
|
||||
break;
|
||||
case down: printf ("down\n");
|
||||
break;
|
||||
case stop: printf ("stop\n");
|
||||
break;
|
||||
case prev: printf ("previous\n");
|
||||
break;
|
||||
case next: printf ("next ch\n");
|
||||
break;
|
||||
default: printf ("hiba\n");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user