element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Enchanted Objects
  • Challenges & Projects
  • Design Challenges
  • Enchanted Objects
  • More
  • Cancel
Enchanted Objects
Blog The Weekend Proved Productive
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: RParkerE
  • Date Created: 25 May 2015 2:59 AM Date Created
  • Views 694 views
  • Likes 4 likes
  • Comments 2 comments
  • mini_automator
  • enchanted-objects
Related
Recommended

The Weekend Proved Productive

RParkerE
RParkerE
25 May 2015

So this weekend the genie buckled down, determined to finish the project he had started. His heart was delighted to see that he had finally finished all the wiring to his house! Now all that need to be done was furnishing and some aesthetics!


#include <TimeAlarms.h>
#include <infineonrgb.h>
#include <Wire.h>
#include <Time.h>
#include <stdlib.h>

InfineonRGB LEDS;

void setup() {
     // put your setup code here, to run once:
     LEDS.begin();   
     LEDS.SetDimmingLevel(0x0000);
     setTime(5,41,0,5,24,14); // set time to Saturday 5:41:00am May 24 2015
     Alarm.alarmRepeat(5,41,05, Light);  // 5:41:05am every day

}

void loop() {
     // put your main code here, to run repeatedly:
     Alarm.delay(1000);
}

void Light() {
     LEDS.SetIntensityRGB(0x01FF, 0x0000, 0x0000);
     LEDS.SetDimmingLevel(0x01FF);
     delay(3000);
     LEDS.SetDimmingLevel(0x03FF);
     delay(3000);
     LEDS.SetDimmingLevel(0x07FF);
     delay(3000);
     LEDS.SetDimmingLevel(0x0FFF);
     delay(3000);
     LEDS.SetDimmingLevel(0x07FF);
     delay(3000);
     LEDS.SetDimmingLevel(0x03FF);
     delay(3000);
     LEDS.SetDimmingLevel(0x01FF);
     delay(3000);
     LEDS.SetDimmingLevel(0x0000);
}

 

Above is the code that I used for the video, this will be implemented in the final code, but not using the TimeAlarm library. Also I would like to give Inderpreet Singh a huge thanks. His library infineonrgb.h was very useful. You can find it here.

 

                                                                                                    

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

 

Stay tuned to see what magic the genie preforms next!

  • Sign in to reply

Top Comments

  • Workshopshed
    Workshopshed over 10 years ago +1
    Congratulations on getting the dimming working.
  • DAB
    DAB over 10 years ago +1
    I can see I need to pick up a couple of these Infineon LED controllers. They appear to be very useful. DAB
  • DAB
    DAB over 10 years ago

    I can see I need to pick up a couple of these Infineon LED controllers.

     

    They appear to be very useful.

     

    DAB

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Workshopshed
    Workshopshed over 10 years ago

    Congratulations on getting the dimming working.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube