Skip to content
  • Live
  • Blog
  • Shop
  • Contact
  • About
  • 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:

  • Click to share on X (Opens in new window) X
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Tumblr (Opens in new window) Tumblr
  • Click to share on Reddit (Opens in new window) Reddit
  • More
  • Click to share on Pinterest (Opens in new window) Pinterest
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to email a link to a friend (Opens in new window) Email
  • Click to print (Opens in new window) 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

CheerLights Android App Uncategorized
CheerLights JavaScript Client Library Released at GitHub News
CheerLights ESP8266 Wi-Fi and NeoPixel Strip Example Projects

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.

  • Arduino Library for CheerLights
  • Offical Python Package for the CheerLights API
  • CheerLights JavaScript Widgets
  • Learn How to Make a CheerLights Tree Topper
  • Christmas in July with CheerLights

Copyright © 2025 CheerLights.

Powered by PressBook Grid Blogs theme

 

Loading Comments...