{"id":5324,"date":"2025-05-21T06:12:12","date_gmt":"2025-05-21T06:12:12","guid":{"rendered":"https:\/\/webprojects.cloud\/wordpress\/splatco\/?page_id=5324"},"modified":"2025-07-11T08:58:20","modified_gmt":"2025-07-11T08:58:20","slug":"rgb-colourwheel-simple","status":"publish","type":"page","link":"https:\/\/webprojects.cloud\/wordpress\/splatco\/rgb-colourwheel-simple\/","title":{"rendered":"rgb colourwheel simple"},"content":{"rendered":"\n<p><strong>This EasyStep shows you how Easy it is to get an EC1 to control an RGB LED from an Android device via Bluetooth.<\/strong><\/p>\n\n\n\n<p>The program combines three other EasySteps, which you must have done first (and have all the hardware for) for this one to make sense. They are:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/rgb-led-drive\/\">A simple setup to control an RGB colour LED<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/connect-to-jy-mcu-bt\/\">Connecting to a JY-MCU Bluetooth to serial slave adaptor module<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/bluetooth-simplehmi-basic-example\/\">A first sample app using Bluetooth to Android<\/a><\/li>\n<\/ul>\n\n\n\n<p>It should take you way less than an hour to do this EasyStep, depending on how deeply you delve into the SPLat code. The video clip below shows you the end result using a rolled up sheet of paper as a diffuser.<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-rich is-provider-embed-handler wp-block-embed-embed-handler wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"ec1 rgb bluetooth colourwheel\" width=\"1240\" height=\"698\" src=\"https:\/\/www.youtube.com\/embed\/6zYk-OL8Y-Y?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<h6 class=\"wp-block-heading\">To run the program<\/h6>\n\n\n\n<p>I am going to jump straight into the program. This EasyStep really is just a remix of previous steps, plus a new program. The program is not overly complicated. If you studied the previous ones most of it should be obvious. There&#8217;s one new element, which has a &#8220;mouseover&#8221; explanation.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><em>Close<\/em>&nbsp;all running copies of SPLat\/PC<\/li>\n\n\n\n<li><a href=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-content\/uploads\/2025\/05\/rgb-simplehmi-colourwheel.spt\">Click this link<\/a>&nbsp;to download the program and launch it into SPLat\/PC. Depending on what browser you are running, you will need to select the appropriate option to run the file in the matching application (SPLat\/PC).<\/li>\n\n\n\n<li>Connect SPLat\/PC to the EC1.\u00a0<a href=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/getting_started_with_splatpc_and_ec1\/\">Details<\/a>. The Module window in SPLat\/PC should now look something like this:<br><img loading=\"lazy\" decoding=\"async\" width=\"168\" height=\"285\" src=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-content\/uploads\/2025\/05\/easystep_9-6.gif\" alt=\"\"><\/li>\n\n\n\n<li>Hit CTRL+F12 to translate the program and send it to the EC1 and run it;<\/li>\n\n\n\n<li>Connect to the EC1 from your Android &#8216;phone.\u00a0<a href=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/connect-to-jy-mcu-bt\/\">EasyStep<\/a>;<\/li>\n\n\n\n<li>Have fun.<\/li>\n<\/ul>\n\n\n\n<h6 class=\"wp-block-heading\">The program<\/h6>\n\n\n\n<p>The full program is listed below. To show\/hide the program listing&nbsp;<a onclick=\"toggleVisibility('hiddenContent1')\" class=\"pointer\">click here<\/a>. One single pop-up annotation is on an instruction that is almost certainly new to you. It is marked like this:<\/p>\n\n\n\n<p>;[&#8230;]<\/p>\n\n\n\n<p>Place your mouse over the&nbsp;;[&#8230;]&nbsp;to see the pop-up.<\/p>\n\n\n\n<pre id=\"hiddenContent1\" class=\"wp-block-code d-none has-background\" style=\"background-color:#ffdddd\"><code>;RGB\/SimpleHMI colourwheel demo for EC1\n\naoRed           oEQU    0   \naoGrn           oEQU    1   \naoBlu           oEQU    2   \n\nHMIPort         EQU     252\t\t;Assign a value to a symbolic name\n\n#       Open_Serial Port(HMIPort) User(9600,8,N)   \n#       HMI Port(HMIPort) ConnectEvent(evConnect)  ;Declare the handler for the Connected event\n\n        GoSub           TopMenu         ;Paint the initial screen\n        LaunchTask      HeartBeat\n        RunTasksForever\n            \n;Paint the home screen on SimpleHMI aka Top Menu           \nevConnect:\n        GoSub   TopMenu\n        Return\n        \n;------ Display Colour wheel ------------------\nTopMenu:\n# HMI Reset() Cls() HideAllButtons()\n# HMI ColourWheel(evColourWheel)\n        Return\n;----------------------------------------------\n;New colour input from the colour wheel. RGB values are 0-255\nevColourWheel:     \n        fLoadQ          0.003923      ;Scale factor\n\n;&#91;...]\n        aCOMRx_fGetNum  HMIPort,255   ;Retrieve the Red value\n        fMul                          ;Scale from 0-255 to 0-.99999999\n        fAnout          aoRed         ;Set the red LED\n\n        aCOMRx_fGetNum  HMIPort,255   ;Retrieve the Green value\n        fMul\n        fAnout          aoGrn   \n\n        aCOMRx_fGetNum  HMIPort,255   ;Retrieve the Blue value\n        fMul\n        fAnout          aoBlu   \n\n        Return\n;====================================================================\n;Heartbeat task\nHeartBeat:\n        On              0\n        Pause           10\n        Off             0\n        Pause           40\n        GoTo            HeartBeat\n        <\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>This EasyStep shows you how Easy it is to get an EC1 to control an RGB LED from an Android device via Bluetooth. The program&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-5324","page","type-page","status-publish","hentry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>rgb colourwheel simple - SPLat Controls<\/title>\n<meta name=\"robots\" content=\"noindex, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"rgb colourwheel simple - SPLat Controls\" \/>\n<meta property=\"og:description\" content=\"This EasyStep shows you how Easy it is to get an EC1 to control an RGB LED from an Android device via Bluetooth. The program...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/rgb-colourwheel-simple\/\" \/>\n<meta property=\"og:site_name\" content=\"SPLat Controls\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-11T08:58:20+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-content\/uploads\/2025\/05\/easystep_9-6.gif\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/rgb-colourwheel-simple\/\",\"url\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/rgb-colourwheel-simple\/\",\"name\":\"rgb colourwheel simple - SPLat Controls\",\"isPartOf\":{\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/rgb-colourwheel-simple\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/rgb-colourwheel-simple\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-content\/uploads\/2025\/05\/easystep_9-6.gif\",\"datePublished\":\"2025-05-21T06:12:12+00:00\",\"dateModified\":\"2025-07-11T08:58:20+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/rgb-colourwheel-simple\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webprojects.cloud\/wordpress\/splatco\/rgb-colourwheel-simple\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/rgb-colourwheel-simple\/#primaryimage\",\"url\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-content\/uploads\/2025\/05\/easystep_9-6.gif\",\"contentUrl\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-content\/uploads\/2025\/05\/easystep_9-6.gif\",\"width\":168,\"height\":285},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/rgb-colourwheel-simple\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"rgb colourwheel simple\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/#website\",\"url\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/\",\"name\":\"SPLat Controls\",\"description\":\"OEM Embedded Machine Controllers\",\"publisher\":{\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/#organization\",\"name\":\"SPLat Controls\",\"url\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-content\/uploads\/2024\/10\/logo.svg\",\"contentUrl\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-content\/uploads\/2024\/10\/logo.svg\",\"caption\":\"SPLat Controls\"},\"image\":{\"@id\":\"https:\/\/webprojects.cloud\/wordpress\/splatco\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"rgb colourwheel simple - SPLat Controls","robots":{"index":"noindex","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"og_locale":"en_US","og_type":"article","og_title":"rgb colourwheel simple - SPLat Controls","og_description":"This EasyStep shows you how Easy it is to get an EC1 to control an RGB LED from an Android device via Bluetooth. The program...","og_url":"https:\/\/webprojects.cloud\/wordpress\/splatco\/rgb-colourwheel-simple\/","og_site_name":"SPLat Controls","article_modified_time":"2025-07-11T08:58:20+00:00","og_image":[{"url":"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-content\/uploads\/2025\/05\/easystep_9-6.gif","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/rgb-colourwheel-simple\/","url":"https:\/\/webprojects.cloud\/wordpress\/splatco\/rgb-colourwheel-simple\/","name":"rgb colourwheel simple - SPLat Controls","isPartOf":{"@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/rgb-colourwheel-simple\/#primaryimage"},"image":{"@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/rgb-colourwheel-simple\/#primaryimage"},"thumbnailUrl":"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-content\/uploads\/2025\/05\/easystep_9-6.gif","datePublished":"2025-05-21T06:12:12+00:00","dateModified":"2025-07-11T08:58:20+00:00","breadcrumb":{"@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/rgb-colourwheel-simple\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webprojects.cloud\/wordpress\/splatco\/rgb-colourwheel-simple\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/rgb-colourwheel-simple\/#primaryimage","url":"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-content\/uploads\/2025\/05\/easystep_9-6.gif","contentUrl":"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-content\/uploads\/2025\/05\/easystep_9-6.gif","width":168,"height":285},{"@type":"BreadcrumbList","@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/rgb-colourwheel-simple\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webprojects.cloud\/wordpress\/splatco\/"},{"@type":"ListItem","position":2,"name":"rgb colourwheel simple"}]},{"@type":"WebSite","@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/#website","url":"https:\/\/webprojects.cloud\/wordpress\/splatco\/","name":"SPLat Controls","description":"OEM Embedded Machine Controllers","publisher":{"@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webprojects.cloud\/wordpress\/splatco\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/#organization","name":"SPLat Controls","url":"https:\/\/webprojects.cloud\/wordpress\/splatco\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/#\/schema\/logo\/image\/","url":"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-content\/uploads\/2024\/10\/logo.svg","contentUrl":"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-content\/uploads\/2024\/10\/logo.svg","caption":"SPLat Controls"},"image":{"@id":"https:\/\/webprojects.cloud\/wordpress\/splatco\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-json\/wp\/v2\/pages\/5324","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-json\/wp\/v2\/comments?post=5324"}],"version-history":[{"count":12,"href":"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-json\/wp\/v2\/pages\/5324\/revisions"}],"predecessor-version":[{"id":6218,"href":"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-json\/wp\/v2\/pages\/5324\/revisions\/6218"}],"wp:attachment":[{"href":"https:\/\/webprojects.cloud\/wordpress\/splatco\/wp-json\/wp\/v2\/media?parent=5324"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}