Advertisement
Guest User

Untitled

a guest
Aug 8th, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.20 KB | None | 0 0
  1. enum myEnumType {
  2.   foo,
  3.   bar
  4. };
  5.  
  6. myEnumType baz(uint8_t quux){
  7.   if(quux > 6){
  8.     return bar;
  9.   } else {
  10.     return foo;
  11.   }
  12.  
  13. }
  14.  
  15. void setup() {
  16.   baz(8);
  17. }
  18.  
  19. void loop() {
  20.  
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement