{"id":18664925,"url":"https://github.com/mazkdevf/arduinouno-emolevy-leds","last_synced_at":"2026-04-29T00:06:06.169Z","repository":{"id":227390329,"uuid":"661354367","full_name":"mazkdevf/ArduinoUno-Emolevy-leds","owner":"mazkdevf","description":"Asuksen Emolevyyn ledit arduinolla Helsingin Uskalla Yrittää finaalia varten.","archived":false,"fork":false,"pushed_at":"2023-07-02T15:30:03.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-27T17:27:54.573Z","etag":null,"topics":["adafruit","arduino","asus","emolevy","led","leds","motherboard","neopixel","uno"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mazkdevf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-07-02T15:27:10.000Z","updated_at":"2024-03-13T02:48:14.000Z","dependencies_parsed_at":"2024-03-13T04:52:00.874Z","dependency_job_id":null,"html_url":"https://github.com/mazkdevf/ArduinoUno-Emolevy-leds","commit_stats":null,"previous_names":["mazkdevf/arduinouno-emolevy-leds"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mazkdevf%2FArduinoUno-Emolevy-leds","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mazkdevf%2FArduinoUno-Emolevy-leds/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mazkdevf%2FArduinoUno-Emolevy-leds/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mazkdevf%2FArduinoUno-Emolevy-leds/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mazkdevf","download_url":"https://codeload.github.com/mazkdevf/ArduinoUno-Emolevy-leds/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239491542,"owners_count":19647852,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["adafruit","arduino","asus","emolevy","led","leds","motherboard","neopixel","uno"],"created_at":"2024-11-07T08:25:31.491Z","updated_at":"2025-11-06T10:30:33.601Z","avatar_url":"https://github.com/mazkdevf.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ArduinoUno-Emolevy-leds\n\n```cpp\n#include \u003cAdafruit_NeoPixel.h\u003e\n#ifdef AVR\n#include \u003cavr/power.h\u003e\n#endif\n\n#define PIN 2\n#define NUMPIXELS 10\nAdafruit_NeoPixel pikselit(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800);\n\nvoid setup()\n{\n#if defined(AVR_ATtiny85) \u0026\u0026 (F_CPU == 16000000)\n  clock_prescale_set(clock_div_1);\n#endif\n  pikselit.begin();\n}\n\n#define SIIRTYMISAIKA 1200\n\nvoid loop()\n{\n  static unsigned long siirtymisenAlkuaika = 0;\n  static int nykyinenPikseli = 0;\n  static bool onkoSiirtymassa = false;\n\n  if (!onkoSiirtymassa)\n  {\n    pikselit.clear();\n    for (int i = 0; i \u003c NUMPIXELS; i++)\n    {\n      pikselit.setPixelColor(i, pikselit.Color(255, 255, 255));\n    }\n    pikselit.show();\n\n    if (millis() - siirtymisenAlkuaika \u003e= SIIRTYMISAIKA)\n    {\n      siirtymisenAlkuaika = millis();\n      nykyinenPikseli = 2;\n      onkoSiirtymassa = true;\n    }\n  }\n  else\n  {\n    int punainen = 255;\n    int vihreä = map(millis() - siirtymisenAlkuaika, 255, SIIRTYMISAIKA, 255, 0);\n    int sininen = 0;\n\n    pikselit.setPixelColor(nykyinenPikseli, pikselit.Color(punainen, vihreä, sininen));\n    pikselit.show();\n\n    if (millis() - siirtymisenAlkuaika \u003e= SIIRTYMISAIKA)\n    {\n      nykyinenPikseli++;\n      if (nykyinenPikseli \u003e= NUMPIXELS)\n      {\n        onkoSiirtymassa = false;\n      }\n      else\n      {\n        siirtymisenAlkuaika = millis();\n      }\n    }\n  }\n}\n```\n\n![image](https://github.com/mazkdevf/ArduinoUno-Emolevy-leds/assets/79049205/39425a57-bf8e-421b-af54-f8b208f2c3da)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmazkdevf%2Farduinouno-emolevy-leds","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmazkdevf%2Farduinouno-emolevy-leds","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmazkdevf%2Farduinouno-emolevy-leds/lists"}