Mini leds widget

wow, that is really cool trick…
one can use to make a nice progress bar indicator :slight_smile:

yes and many other things like big display

those full and empty circles are ascii code? i can’t find such character in ascii table…

ah ah, there are not ascii code, but you can too

this is my strings

String Led1 = "πŸŒ‘πŸŒ‘πŸŒ‘πŸŒ‘πŸŒ‘πŸŒ‘πŸŒ‘"; // all low
String Led2 = "πŸŒ•πŸŒ‘πŸŒ‘πŸŒ‘πŸŒ‘πŸŒ‘πŸŒ‘";
String Led3 = "πŸŒ•πŸŒ•πŸŒ‘πŸŒ‘πŸŒ‘πŸŒ‘πŸŒ‘";
String Led4 = "πŸŒ•πŸŒ•πŸŒ•πŸŒ‘πŸŒ‘πŸŒ‘πŸŒ‘";
String Led5 = "πŸŒ•πŸŒ•πŸŒ•πŸŒ•πŸŒ‘πŸŒ‘πŸŒ‘";
String Led6 = "πŸŒ•πŸŒ•πŸŒ•πŸŒ•πŸŒ•πŸŒ‘πŸŒ‘";
String Led7 = "πŸŒ•πŸŒ•πŸŒ•πŸŒ•πŸŒ•πŸŒ•πŸŒ‘";
String Led8 = "πŸŒ•πŸŒ•πŸŒ•πŸŒ•πŸŒ•πŸŒ•πŸŒ•";//all high

We use the following for remaining battery power and WiFi signal strength in one of our projects:

[]
[][]
[][][]
[][][][]
[][][][][]
[][][][][][]
[][][][][][][]

1 Like

code tease :stuck_out_tongue_winking_eye:

What are they? I can copy/paste into my IDE, but the display widget clearly doesn’t understand what to do with them.

image

image

I am using Android 6.0
don’t know why such result for you Gunner
what do you see on your serial monitor ?

1 Like

Same thing… 6 little ??????

But if I copy/paste from your post above into my display widget setup like you did, I can also display the β€œwhatevertheyare” characters… just not via the script.

image

void MiniLed() {

  LedFlag++;
  if (LedFlag == 9) {
    LedFlag = 1;
  }
  Serial.println( LedFlag);
  
  switch (LedFlag)
  {
    case 1: { // Item 1
        Blynk.virtualWrite(V16, Led1);
        break;
      }
    case 2: { // Item 2
        Blynk.virtualWrite(V16, Led2);
        break;
      }
    case 3: { // Item 3
        Blynk.virtualWrite(V16, Led3);
        break;
      }
    case 4: { // Item 4
        Blynk.virtualWrite(V16, Led4);
        break;
      }
    case 5: { // Item 5
        Blynk.virtualWrite(V16, Led5);
        break;
      }
    case 6: { // Item 6
        Blynk.virtualWrite(V16, Led6);
        break;
      }
    case 7: { // Item 7
        Blynk.virtualWrite(V16, Led7);
        break;
      }
    case 8: { // Item 8
        Blynk.virtualWrite(V16, Led8);
        break;
      }
  }
}

this my serial

03-017778

it is an issue between copy and past

try to get full_moon and new_moon smiley

:new_moon::full_moon:

:wink::wink:

1 Like

Of course :blush: Phone emoticons!!!.. I should have guessed since I use them all the time in my testbench project.

1 Like

yes phone emoticons
you can use extended ASCII code as well.
but not so nice
:joy::joy:

Yes, the only way I could code it in my IDE was like this

String Led1 = "\xF0\x9F\x8C\x91 \xF0\x9F\x8C\x91 \xF0\x9F\x8C\x91 \xF0\x9F\x8C\x91 \xF0\x9F\x8C\x91 \xF0\x9F\x8C\x91 \xF0\x9F\x8C\x91"; // all low
String Led2 = "\xF0\x9F\x8C\x95 \xF0\x9F\x8C\x91 \xF0\x9F\x8C\x91 \xF0\x9F\x8C\x91 \xF0\x9F\x8C\x91 \xF0\x9F\x8C\x91 \xF0\x9F\x8C\x91";
String Led3 = "\xF0\x9F\x8C\x95 \xF0\x9F\x8C\x95 \xF0\x9F\x8C\x91 \xF0\x9F\x8C\x91 \xF0\x9F\x8C\x91 \xF0\x9F\x8C\x91 \xF0\x9F\x8C\x91";
String Led4 = "\xF0\x9F\x8C\x95 \xF0\x9F\x8C\x95 \xF0\x9F\x8C\x95 \xF0\x9F\x8C\x91 \xF0\x9F\x8C\x91 \xF0\x9F\x8C\x91 \xF0\x9F\x8C\x91";
String Led5 = "\xF0\x9F\x8C\x95 \xF0\x9F\x8C\x95 \xF0\x9F\x8C\x95 \xF0\x9F\x8C\x95 \xF0\x9F\x8C\x91 \xF0\x9F\x8C\x91 \xF0\x9F\x8C\x91";
String Led6 = "\xF0\x9F\x8C\x95 \xF0\x9F\x8C\x95 \xF0\x9F\x8C\x95 \xF0\x9F\x8C\x95 \xF0\x9F\x8C\x95 \xF0\x9F\x8C\x91 \xF0\x9F\x8C\x91";
String Led7 = "\xF0\x9F\x8C\x95 \xF0\x9F\x8C\x95 \xF0\x9F\x8C\x95 \xF0\x9F\x8C\x95 \xF0\x9F\x8C\x95 \xF0\x9F\x8C\x95 \xF0\x9F\x8C\x91";
String Led8 = "\xF0\x9F\x8C\x95 \xF0\x9F\x8C\x95 \xF0\x9F\x8C\x95 \xF0\x9F\x8C\x95 \xF0\x9F\x8C\x95 \xF0\x9F\x8C\x95 \xF0\x9F\x8C\x95";//all high

BLYNK_WRITE(V54) {
  switch (param.asInt())
  {
    case 1: { // Item 1
        Blynk.virtualWrite(V58, Led1);
        break;
      }
    case 2: { // Item 2
        Blynk.virtualWrite(V58, Led2);
        break;
      }
    case 3: { // Item 3
        Blynk.virtualWrite(V58, Led3);
        break;
      }
    case 4: { // Item 4
        Blynk.virtualWrite(V58, Led4);
        break;
      }
    case 5: { // Item 5
        Blynk.virtualWrite(V58, Led5);
        break;
      }
    case 6: { // Item 6
        Blynk.virtualWrite(V58, Led6);
        break;
      }
    case 7: { // Item 7
        Blynk.virtualWrite(V58, Led7);
        break;
      }
    case 8: { // Item 8
        Blynk.virtualWrite(V58, Led8);
        break;
      }
  }
}

But it works great!

2 Likes

it works well!

I totally should have caught on sooner… as I used similar emoticon control for animated displays

1 Like

PS, this is where I get my emoticon codes from…

1 Like

i use a similary website.

Interesting graphical coding approach!! Thanks for sharing :clap:

1 Like