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.
|
|
package com.example.garagedoorcontroller
import android.content.Intentimport androidx.appcompat.app.AppCompatActivityimport android.os.Bundleimport 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) }}
|