Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void Oswietlenie_1() {
- if (RemoteXY.switch_swiatla != 0) {
- digitalWrite(Wyjscie_LED_pozycyjne, HIGH);
- Swiatla_Pozycyjne_BMP();
- } else {
- digitalWrite(Wyjscie_LED_pozycyjne, LOW);
- }
- }
- void Oswietlenie_2() {
- if (RemoteXY.switch_swiatla_2 != 0) {
- digitalWrite(Wyjscie_LED_pozycyjne_2, HIGH);
- Swiatla_Dlugie_BMP();
- } else {
- digitalWrite(Wyjscie_LED_pozycyjne_2, LOW);
- }
- }
- void Swiatlo_STOP() {
- if (RemoteXY.button_STOP != 0) {
- digitalWrite(Wyjscie_LED_STOP, HIGH);
- Hamulec_BMP();
- } else {
- digitalWrite(Wyjscie_LED_STOP, LOW);
- }
- }
- void Ograniczenie() {
- if (RemoteXY.switch_ograniczenie != 0) {
- strcpy (RemoteXY.text_stan, "25km/h");
- Ograniczenie_mocy_BMP();
- } else {
- strcpy (RemoteXY.text_stan, "Pełna moc");
- }
- }
- void Stacyjka() {
- if (RemoteXY.switch_stacyjka != 0) {
- digitalWrite(Wyjscie_Stacyjka, HIGH);
- } else {
- digitalWrite(Wyjscie_Stacyjka, LOW);
- }
- }
- void Migacz_Lewy() {
- if (RemoteXY.button_migacz_lewy != 0) {
- Migacz_Lewy_OUT();
- Strzalka_Lewa_BMP();
- } else {
- digitalWrite(Wyjscie_Migacz_Lewy, LOW);
- }
- }
- void Migacz_Prawy() {
- if (RemoteXY.button_migacz_prawy != 0) {
- Migacz_Prawy_OUT();
- Strzalka_Prawa_BMP();
- } else {
- digitalWrite(Wyjscie_Migacz_Prawy, LOW);
- }
- }
- void Alarm() {
- if (RemoteXY.switch_alarm != 0) {
- } else {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement