Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
sotsef-reaction-game
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tag2y19
sotsef-reaction-game
Compare revisions
c54ebff2c915e03d52d19fae428b946799c31d0d to 806c20a9dffdba340f8cebb65d483e1975800d50
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
tag2y19/sotsef-reaction-game
Select target project
No results found
806c20a9dffdba340f8cebb65d483e1975800d50
Select Git revision
Swap
Target
tag2y19/sotsef-reaction-game
Select target project
tag2y19/sotsef-reaction-game
1 result
c54ebff2c915e03d52d19fae428b946799c31d0d
Select Git revision
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (2)
Remove adwaita. We were only using Gtk anyway.
· b82a618b
tag2y19
authored
3 weeks ago
b82a618b
Add README
· 806c20a9
tag2y19
authored
3 weeks ago
806c20a9
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
README.txt
+24
-0
24 additions, 0 deletions
README.txt
configure.sh
+1
-1
1 addition, 1 deletion
configure.sh
inc/app.h
+2
-2
2 additions, 2 deletions
inc/app.h
src/app.c
+2
-2
2 additions, 2 deletions
src/app.c
src/main.c
+1
-1
1 addition, 1 deletion
src/main.c
with
30 additions
and
6 deletions
README.txt
0 → 100644
View file @
806c20a9
Raspberry Pi Program for the SOTSEF LED Reactions Game
Dependencies:
- Gtk 4 (sudo apt install libgtk-4-dev)
- librsvg (sudo apt install librsvg2-dev)
- blueprint-compiler (Get it from
https://gitlab.gnome.org/jwestman/blueprint-compiler/-/releases/v0.14.0,
the debian repo version is really out of date)
- WiringPi (https://github.com/WiringPi/WiringPi; it's not in the debian
repo)
Building:
```
./configure build
ninja -C build
```
Running:
```
./build/game
```
This diff is collapsed.
Click to expand it.
configure.sh
View file @
806c20a9
...
...
@@ -25,7 +25,7 @@ fi
eval set
--
"
$ARGS
"
;
zero
=
"
$0
"
;
PKGS
=
"gtk4
libadwaita-1
librsvg-2.0"
PKGS
=
"gtk4 librsvg-2.0"
while
true
;
do
...
...
This diff is collapsed.
Click to expand it.
inc/app.h
View file @
806c20a9
...
...
@@ -5,11 +5,11 @@
extern
"C"
{
#endif
#include
<
adwaita
.h>
#include
<
gtk/gtk
.h>
#define GAME_APP_TYPE ( game_app_get_type() )
G_DECLARE_FINAL_TYPE
(
GameApp
,
game_app
,
GAME
,
APP
,
Adw
Application
);
GameApp
,
game_app
,
GAME
,
APP
,
Gtk
Application
);
GameApp
*
game_app_new
();
void
game_app_button_press
(
GameApp
*
app
,
int
pin
);
...
...
This diff is collapsed.
Click to expand it.
src/app.c
View file @
806c20a9
...
...
@@ -7,13 +7,13 @@
struct
_GameApp
{
Adw
Application
parent
;
Gtk
Application
parent
;
GameWindow
*
window
;
};
G_DEFINE_TYPE
(
GameApp
,
game_app
,
ADW
_TYPE_APPLICATION
);
G_DEFINE_TYPE
(
GameApp
,
game_app
,
GTK
_TYPE_APPLICATION
);
/* PROTOTYPES!!! */
...
...
This diff is collapsed.
Click to expand it.
src/main.c
View file @
806c20a9
...
...
@@ -2,7 +2,7 @@
#include
"pins.h"
#include
<
adwaita
.h>
#include
<
gtk/gtk
.h>
#include
<stdio.h>
#ifndef NO_WIRINGPI
#include
<wiringPi.h>
...
...
This diff is collapsed.
Click to expand it.