File tree Expand file tree Collapse file tree
examples/Advanced_CustomButton_Demo_01 Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11/*
22 The MIT License (MIT)
33
4- Copyright (c) 2019 Lance A. Endres
4+ Copyright (c) 2021 Lance A. Endres
55
66 Permission is hereby granted, free of charge, to any person obtaining a copy of
77 this software and associated documentation files (the "Software"), to deal in
@@ -45,14 +45,14 @@ CustomButton::LIGHTBEHAVIOR CustomButton::getBehavior()
4545 {
4646 // We want to blink the light for 1 second when the button is pressed and released.
4747 // In the ButtonSuite, this event returns the WASSHORTPRESSED.
48- case WASSHORTPRESSED:
48+ case BUTTONSUITE:: WASSHORTPRESSED:
4949 {
5050 return BLINKONCE;
5151 }
5252
5353 // We want to blink the light fastly as long as the button has been held down long
5454 // enough to be considered a long press and still is being held down.
55- case ISLONGPRESSED:
55+ case BUTTONSUITE:: ISLONGPRESSED:
5656 {
5757 return FASTBLINK;
5858 }
Original file line number Diff line number Diff line change 11/*
22 The MIT License (MIT)
33
4- Copyright (c) 2019 Lance A. Endres
4+ Copyright (c) 2021 Lance A. Endres
55
66 Permission is hereby granted, free of charge, to any person obtaining a copy of
77 this software and associated documentation files (the "Software"), to deal in
You can’t perform that action at this time.
0 commit comments