 for the circuit python parsec today i wanted to show you how you can use a short press versus a long press on a single button inside of circuit python this is super useful when you have a limited amount of user interface inputs such as a device with a single button or a couple buttons and you want to be able to switch say between different modes which is really really useful on limited ui's so here i can show you in action when i press this button on my circuit playground express i will advance one position on my little ring of neopixels and i'll have to move my thumb so you can see around to the other side there now if i want to switch the color of that i'm using the exact same button i'm just pressing and holding if i press and hold for half a second i go up to a different color selection so the single short press you can see it there printing out says short press if i click and hold we switch over to a new color switch and hold new color switch and hold new color short press and we advance so the way you do this is a subset of the debouncer library so inside the debouncer library you can import button so if you look my code here it says from ate a fruit debouncer import button you set this up pretty much like a normal button except here i say button i give it the button pin that we're using and then i tell it how long to count in milliseconds to consider something a long duration press then down here in my main code i'm using button update pretty similar to debouncer if the short count which is when it senses you've pressed the button but not held it for a long duration if that short count happens then i'm doing one thing which is really just advancing to the next neopixel if however it detects a long press so if button dot long press then we're doing something else which is changing to the next color in my little list of colors so here you can see an action i can do a short press to advance to new neopixels press and hold and i change the color so that is how you can use a short press versus a long press inside of circuit python and that is your circuit python parsec