This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* This is an Interrupt Button Test for Maple Leaf Min STM32 | |
*/ | |
#define BOARD_BUTTON_PIN 32 | |
#define BOARD_LED_PIN 33 | |
volatile byte led_state = 0; | |
void interruptFunction() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
""" | |
Conway's Game of Live | |
Model: Matrix of cells - x, y | |
View: Tkinter Canvas with grid of cells (rectangles). | |
Controller: Puts them together. | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/python | |
""" | |
A famous casino is suddenly faced with a sharp decline of their revenues. They | |
decide to offer Texas hold'em also online. Can you help them by writing an | |
algorithm that can rank poker hands? | |
Task: | |
Create a poker hand that has a method to compare itself to another poker hand: | |
compare_with(self, other_hand) |