how to manipulate the list conditional on the weekday?

I create a list for the 74HC595 to connect 7 LEDs.
I would like the 1st LED to light and others dim on Sunday; 2nd LED light and other dim on Monday...
The list would be:
[1,0,0,0,0,0,0] if the rtc.dow =1
[0,1,0,0,0,0,0] if the rtc.dow =2
how can I coding the list according to the RTC week of day output.

I am new to the Arduino and would like to use it for show the week day for my father's medicine usage.
Thanks for the help

OK, the pill reminder. :grinning:

Now, tell us what you have (Nano easiest to work with), what RTC you have and what you have coded so far?

Have you read the instructions for posting code (point No. 7)?

switch (dayOfWeek){
day 1:
for (x = 1; x <8; x=x+1){ // turn all LEDs off, 8 byte dayLED array, dayLED[0] not used
digitalWrite (dayLED[x], LOW);
}
digitalWrite (dayLED[1], HIGH);
break;
:
:
day 7:
for (x = 1; x <8; x=x+1){ // turn all LEDs off, 8 byte dayLED array, dayLED[0] not used
digitalWrite (dayLED[x], LOW);
}
digitalWrite (dayLED[7], HIGH);
break;

Now you just need to keep track of dayOfWeek via an RTC module or similar.

I create a list for the 74HC595 to connect 7 LEDs.
I would like the 1st LED to light and others dim on Sunday; 2nd LED light and other dim on Monday...

With a 74HC595, it is hard to have the LEDs at different brightness other than on and off.

I think the above code is referring to an addressable strip which is what you would be better off using.

Grumpy_Mike:
With a 74HC595, it is hard to have the LEDs at different brightness other than on and off.

Well, mildly hard. :astonished:

You just strobe them using a millis() timer and choose how many milliseconds out of 10 to have the LED on, and the remainder off. :grinning:

Just a little programming exercise. :sunglasses: If - as in this case, - the program will be doing nothing else, it would work just fine,