Advertisement
kris83

Button

Jul 5th, 2021
23
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.40 KB | None | 0 0
  1. void Oswietlenie_1() {
  2. if (RemoteXY.switch_swiatla != 0) {
  3. digitalWrite(Wyjscie_LED_pozycyjne, HIGH);
  4. Swiatla_Pozycyjne_BMP();
  5. } else {
  6. digitalWrite(Wyjscie_LED_pozycyjne, LOW);
  7. }
  8. }
  9.  
  10. void Oswietlenie_2() {
  11. if (RemoteXY.switch_swiatla_2 != 0) {
  12. digitalWrite(Wyjscie_LED_pozycyjne_2, HIGH);
  13. Swiatla_Dlugie_BMP();
  14. } else {
  15. digitalWrite(Wyjscie_LED_pozycyjne_2, LOW);
  16. }
  17. }
  18. void Swiatlo_STOP() {
  19. if (RemoteXY.button_STOP != 0) {
  20. digitalWrite(Wyjscie_LED_STOP, HIGH);
  21. Hamulec_BMP();
  22. } else {
  23. digitalWrite(Wyjscie_LED_STOP, LOW);
  24. }
  25. }
  26.  
  27. void Ograniczenie() {
  28. if (RemoteXY.switch_ograniczenie != 0) {
  29. strcpy (RemoteXY.text_stan, "25km/h");
  30. Ograniczenie_mocy_BMP();
  31. } else {
  32. strcpy (RemoteXY.text_stan, "Pełna moc");
  33. }
  34. }
  35.  
  36. void Stacyjka() {
  37. if (RemoteXY.switch_stacyjka != 0) {
  38. digitalWrite(Wyjscie_Stacyjka, HIGH);
  39. } else {
  40. digitalWrite(Wyjscie_Stacyjka, LOW);
  41. }
  42. }
  43.  
  44. void Migacz_Lewy() {
  45. if (RemoteXY.button_migacz_lewy != 0) {
  46. Migacz_Lewy_OUT();
  47. Strzalka_Lewa_BMP();
  48. } else {
  49. digitalWrite(Wyjscie_Migacz_Lewy, LOW);
  50. }
  51. }
  52.  
  53. void Migacz_Prawy() {
  54. if (RemoteXY.button_migacz_prawy != 0) {
  55. Migacz_Prawy_OUT();
  56. Strzalka_Prawa_BMP();
  57. } else {
  58. digitalWrite(Wyjscie_Migacz_Prawy, LOW);
  59. }
  60. }
  61.  
  62.  
  63. void Alarm() {
  64. if (RemoteXY.switch_alarm != 0) {
  65.  
  66. } else {
  67.  
  68. }
  69. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement