Skip to content

Commit 1dd98d2

Browse files
authored
Merge pull request #3 from kasper201/development
Development
2 parents a937e78 + 6ece903 commit 1dd98d2

1,070 files changed

Lines changed: 578058 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Ignore node_modules directory
2+
node_modules/
3+
4+
# Ignore build output
5+
build/
6+
7+
# Ignore IDE and editor specific files
8+
.vscode/
9+
.idea/
10+
*.sublime-project
11+
*.sublime-workspace
12+
13+
# Ignore logs and other generated files
14+
logs/
15+
*.log
16+
*.exe
17+
18+
# Ignore environment specific files
19+
.env
20+
21+
# Ignore dependencies lock files
22+
package-lock.json
23+
yarn.lock

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# How to install and run the project will be put here:
2+
3+
## How to update images
4+
5+
Updating images is done by replacing the .coe files in the vivado project.
6+
7+
### How to convert png's to .coe files
8+
1. locate the file you want to convert
9+
2. download [matlab](https://www.mathworks.com/products/matlab.html)
10+
3. open matlab
11+
4. download the [converter]()

Release.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# What's changed
2+
3+
## Sprites
4+
- Added enemy: angy wall-E
5+
- Added enemy: CleaningRobot
6+
- Added enemy: Evil Eve
7+
- Added plant: moneyplant (sunflower like)
8+
- Added plant: Pineapple
9+
- Added plant: crazyPear
10+
- Added plant: peashooterRO
11+
12+
## Game logic
13+
14+
### location handling
15+
- Added location handling
16+
- Added the ability to move enemies
17+
- Added the ability to detect plants and stop moving
18+
- Added the ability to change entity information based on location
19+
20+
### STM32
21+
- Added the ability to read a button press
22+
23+
## GPU
24+
- Added the ability to draw a sprite
25+
- Added the ability to draw the background
26+
- Added the ability to "green screen" the sprites
27+
28+
## Other
29+
- Added the ability to use UART to communicate at 230400 baud
30+
31+
# Known bugs
32+
33+
## Sprites
34+
- Borders have green artifacts
35+
36+
## Game logic
37+
- There are currently no known bugs
38+
39+
## GPU
40+
- Line on the left of the sprite
41+
- improper border handling
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"files.associations": {
3+
"computercom.h": "c",
4+
"uart.h": "c",
5+
"string.h": "c"
6+
}
7+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
3+
cmake_minimum_required(VERSION 3.20.0)
4+
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
5+
set(DTS_OVERLAY_FILE ${CMAKE_SOURCE_DIR}/board/nucleo_f091rc.overlay)
6+
project(TestBenchForFPGA)
7+
8+
FILE(GLOB app_sources src/*.c)
9+
target_sources(app PRIVATE ${app_sources})
10+
11+
# Add the path to the directory containing the missing header file
12+
include_directories(
13+
header/
14+
)

STM32/TestBenchForFPGA/README.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Uart toegevoegd aan de button sample
2+
Kan een led aan en uit zetten op een fpga met de bijhoorende vhdl code
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
&usart1{
2+
pinctrl-0 = <&usart1_tx_pa9 &usart1_rx_pa10>;
3+
pinctrl-names = "default";
4+
current-speed = <230400>;
5+
status = "okay";
6+
};
7+
8+
&usart2{
9+
pinctrl-0 = <&usart2_tx_pa2 &usart2_rx_pa3>;
10+
pinctrl-names = "default";
11+
current-speed = <115200>;
12+
status = "okay";
13+
};
14+
15+
/ {
16+
aliases {
17+
usart = &usart1;
18+
};
19+
};
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
&usart1{
2+
pinctrl-0 = <&usart1_tx_pa9 &usart1_rx_pa10>;
3+
pinctrl-names = "default";
4+
current-speed = <115200>;
5+
status = "okay";
6+
};
7+
8+
&usart2{
9+
pinctrl-0 = <&usart2_tx_pa2 &usart2_rx_pa3>;
10+
pinctrl-names = "default";
11+
current-speed = <115200>;
12+
status = "okay";
13+
};
14+
15+
/ {
16+
aliases {
17+
usart = &usart1;
18+
};
19+
};
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#ifndef MAIN_H_
2+
#define MAIN_H_
3+
4+
5+
#endif //MAIN_H_
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#ifndef UART_H_
2+
#define UART_H_
3+
4+
extern struct k_msgq uart_msgq; // Declare uart_msgq here
5+
6+
int uartSetup(void);
7+
void print_uart(char *buf);
8+
9+
#endif //UART_H_

0 commit comments

Comments
 (0)