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

  1. package com.example.garagedoorcontroller
  2. import android.content.Intent
  3. import androidx.appcompat.app.AppCompatActivity
  4. import android.os.Bundle
  5. import android.view.View
  6. class MainActivity : AppCompatActivity() {
  7. override fun onCreate(savedInstanceState: Bundle?) {
  8. super.onCreate(savedInstanceState)
  9. setContentView(R.layout.activity_main)
  10. }
  11. fun openGarage(view: View) {
  12. val intent = Intent(this, GarageOpenActivity::class.java).apply {
  13. }
  14. startActivity(intent)
  15. }
  16. fun checkSensor(view: View) {
  17. val intent = Intent(this, CheckSensor::class.java).apply {
  18. }
  19. startActivity(intent)
  20. }
  21. }