I hereby claim:
- I am lbuchy on github.
- I am loganbuchy (https://keybase.io/loganbuchy) on keybase.
- I have a public key ASBrKWfSLMYkQWM6BO7WBGSY-uISRdV2g-B5zjTO-tJFZwo
To claim this, I am signing this object:
| pin=4 | |
| ow.setup(pin) | |
| lastTemp=-999 | |
| function bxor(a,b) | |
| local r = 0 | |
| for i = 0, 31 do | |
| if ( a % 2 + b % 2 == 1 ) then | |
| r = r + 2^i | |
| end | |
| a = a / 2 |
I hereby claim:
To claim this, I am signing this object:
| #include "stm32f4xx_conf.h" | |
| static const int k_delayTicks = 1000000; | |
| void delay(int cnt) | |
| { | |
| int i = 0; | |
| while(i++ < cnt) {} | |
| } |
| #include "stm32f4xx_conf.h" | |
| void initLeds() | |
| { | |
| RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOD, ENABLE); | |
| GPIO_InitTypeDef GPIO_InitStructure; | |
| // Configure PD12 in output pushpull mode | |
| GPIO_InitStructure.GPIO_Pin = GPIO_Pin_12 | GPIO_Pin_13 | GPIO_Pin_14 | GPIO_Pin_15; | |
| GPIO_InitStructure.GPIO_Mode = GPIO_Mode_OUT; |
| #include <errno.h> | |
| #include <stdio.h> | |
| #include <string.h> | |
| #include <stdlib.h> | |
| #include <net/route.h> | |
| #include <sys/types.h> | |
| #include <sys/ioctl.h> | |
| int main(char** args) { | |
| int sockfd; |