Created
January 12, 2022 15:54
Copilot example code
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
#include <stdio.h> | |
#include "heater.c" | |
uint8_t temperature; | |
int main(){ | |
for (int i = 0; i < 200; i++){ | |
temperature = i; | |
step(); | |
} | |
return 0; | |
} | |
void heaton(float heaton_arg0){ | |
printf("heat on\n"); | |
return; | |
} | |
void heatoff(float heatoff_arg0){ | |
printf("heat off\n"); | |
return; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment