Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
I
inky-nextcloud
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
Container 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
Kevin Whitaker
inky-nextcloud
Commits
42a63265
Commit
42a63265
authored
1 year ago
by
Kevin Whitaker
Browse files
Options
Downloads
Patches
Plain Diff
add some more structure
parent
eab0d342
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
uNextcloud.py
+12
-1
12 additions, 1 deletion
uNextcloud.py
with
12 additions
and
1 deletion
uNextcloud.py
+
12
−
1
View file @
42a63265
import
ElementTree
import
ElementTree
from
urllib
import
urequest
from
urllib
import
urequest
import
sdcard
import
gc
import
gc
import
uos
import
uos
...
@@ -10,6 +9,18 @@ class uNextcloud:
...
@@ -10,6 +9,18 @@ class uNextcloud:
def
__init__
(
self
):
def
__init__
(
self
):
self
.
sd_spi
=
machine
.
SPI
(
0
,
sck
=
machine
.
Pin
(
18
,
machine
.
Pin
.
OUT
),
mosi
=
machine
.
Pin
(
19
,
machine
.
Pin
.
OUT
),
miso
=
machine
.
Pin
(
16
,
machine
.
Pin
.
OUT
))
self
.
sd_spi
=
machine
.
SPI
(
0
,
sck
=
machine
.
Pin
(
18
,
machine
.
Pin
.
OUT
),
mosi
=
machine
.
Pin
(
19
,
machine
.
Pin
.
OUT
),
miso
=
machine
.
Pin
(
16
,
machine
.
Pin
.
OUT
))
self
.
sd
=
sdcard
.
SDCard
(
sd_spi
,
machine
.
Pin
(
22
))
self
.
sd
=
sdcard
.
SDCard
(
sd_spi
,
machine
.
Pin
(
22
))
self
.
username
=
None
self
.
password
=
None
uos
.
mount
(
sd
,
"
/sd
"
)
uos
.
mount
(
sd
,
"
/sd
"
)
gc
.
collect
()
gc
.
collect
()
def
set_auth
(
self
,
username
,
password
):
self
.
username
=
username
self
.
password
=
password
def
get_folder_items
(
self
,
folder_path
):
pass
def
download_file_to_path
(
self
,
folder_path
,
file
,
destination_path
):
pass
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
register
or
sign in
to comment