Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Micropython game of life
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Quentin Bolsee
Micropython game of life
Commits
2845a150
Commit
2845a150
authored
Jan 30, 2024
by
Quentin Bolsee
Browse files
Options
Downloads
Patches
Plain Diff
i2c
parent
04dd8f49
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
code/main.py
+2
-2
2 additions, 2 deletions
code/main.py
with
2 additions
and
2 deletions
code/main.py
+
2
−
2
View file @
2845a150
import
ssd1306
import
framebuf
from
machine
import
Soft
I2C
,
Pin
,
freq
from
machine
import
I2C
,
Pin
,
freq
from
ulab
import
numpy
as
np
import
random
import
time
...
...
@@ -33,7 +33,7 @@ def init_grid(grid):
def
main
():
freq
(
250000000
)
i2c
=
Soft
I2C
(
scl
=
Pin
(
7
),
sda
=
Pin
(
6
))
i2c
=
I2C
(
scl
=
Pin
(
7
),
sda
=
Pin
(
6
))
display
=
ssd1306
.
SSD1306_I2C
(
128
,
64
,
i2c
)
width
=
128
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment