Skip to content
  • Live
  • Blog
  • Shop
  • Contact
  • About
  • Twitter
  • Instagram
  • YouTube
  • Twitch
  • GitHub
CheerLights

CheerLights

We are all connected.

  • Learn
  • Build
  • Connect
  • Toggle search form

Use MATLAB to Read the Latest CheerLights Color from ThingSpeak

Posted on October 28, 2022October 28, 2022 By Hans Scharler No Comments on Use MATLAB to Read the Latest CheerLights Color from ThingSpeak

If you are working in MATLAB, it is pretty easy to pull in the latest CheerLights color and work with it.

thingspeak_data = webread("http://api.thingspeak.com/channels/1417/field/2/last.json");
color = thingspeak_data.field2

I used this code for the MATLAB Central Coding Contest to create cool images in 280 characters or less. I use the latest CheerLights color to set the color of the night sky in my Starry Night image.

MATLAB Code Contest: Starry Night Inspired by the CheerLights Color

And, just in time for Halloween, I created a CheerLights-inspired pumpkin illuminated with the latest CheerLights color… FearLights! If hit “Remix” on my code and re-run it, you will likely get a slightly different pumpkin. It has been fun to play with.

CheerLights Pumpkin Designed in MATLAB

MATLAB users have created over 480 awesome images using very little MATLAB code. Check out the gallery of images at MATLAB Central.

Share this:

  • Twitter
  • Facebook
  • Tumblr
  • Reddit
  • More
  • Pinterest
  • LinkedIn
  • Email
  • Print

Related

FearLights, Projects Tags:contest, MATLAB, thingspeak

Post navigation

Previous Post: Make Your Own CheerLights Display for Halloween #FearLights
Next Post: Tom’s Hardware Logo Turned into a Pumpkin for Halloween

Related Posts

The CheerLights Origin Story: Arduino, IoT, Twitter, and Community News
Analyzing CheerLights with MATLAB Projects
CheerLights API Updates – We Added HEX Color Values! News

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

  • Keep Multiple CheerLights in Sync with MQTT
  • CheerClock: A CheerLights Clock Powered by the Pimoroni Galactic Unicorn and Raspberry Pi Pico W
  • YouTube Live with Kevin McAleer: Making a CheerLights-connected Christmas Tree Bauble
  • CheerLights + Raspberry Pi Pico W + MicroPython
  • Learn Redis Streams with the CheerLights IoT Project

Copyright © 2023 CheerLights.

Powered by PressBook Grid Blogs theme

 

Loading Comments...