Contains python control script, Android app code, schematics, and an installer script to automate installation on the Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

26 lines
672 B

package com.example.garagedoorcontroller
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
}
fun openGarage(view: View) {
val intent = Intent(this, GarageOpenActivity::class.java).apply {
}
startActivity(intent)
}
fun checkSensor(view: View) {
val intent = Intent(this, CheckSensor::class.java).apply {
}
startActivity(intent)
}
}