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 <LiquidCrystal.h> | |
#include<stdlib.h> | |
LiquidCrystal lcd(7, 8, 9, 10, 11, 12); | |
float mpgs[10]; | |
int counter = 0; | |
const int numReadings = 10; | |
float readings[numReadings]; |
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
<?xml version="1.0" encoding="utf-8"?> | |
<android.support.v7.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:compat="http://schemas.android.com/apk/res-auto" | |
android:id="@+id/toolbar" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:background="?attr/colorPrimary" | |
android:minHeight="?attr/actionBarSize" | |
compat:theme="?attr/actionBarStyle"/> |
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
<?xml version="1.0" encoding="utf-8"?> | |
<resources> | |
<style name="Theme.Custom.Dark" parent="Theme.AppCompat.NoActionBar"> | |
<item name="actionBarStyle">@style/Theme.AppCompat</item> | |
</style> | |
<style name="Theme.Custom.Light" parent="Theme.AppCompat.Light.NoActionBar"> |
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 <wiringPi.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
int PIN = 4; | |
void getStatus(){ | |
printf("%d\n", digitalRead(PIN)); |
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
import random | |
import re | |
import subprocess | |
import time | |
import serial | |
WORDS = ["TEMPERATURE", "TEMP"] | |
SERIAL_REQUEST = "T" | |
GPIO_PIN_FAN = "17" |
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
# -*- coding: utf-8 -*- | |
import random | |
import re | |
import subprocess | |
import os | |
WORDS = ["FAN", "YES", "NO", "ON", "OFF"] | |
GPIO_PIN_FAN = "17"; |