Skip to content

Commit 696acf6

Browse files
up-fs-hex: Change constructor arguments to make the hex file optional.
1 parent ce0b1ef commit 696acf6

File tree

4 files changed

+106
-62
lines changed

4 files changed

+106
-62
lines changed

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2019 Micro:bit Educational Foundation
3+
Copyright (c) 2019-2020 Micro:bit Educational Foundation
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

docs/quick-guide.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ Initialise a File System instance with a MicroPython Intel Hex string and start
1313

1414
```js
1515
// Create a new FileSystem instance passing the MicroPython Intel Hex string
16-
var micropythonFs = new microbitFs.MicropythonFsHex(IntelHexStr);
17-
var micropythonFsWithFiles = = new microbitFs.MicropythonFsHex(UploadedHexWithUserFiles);
16+
var micropythonFs = new microbitFs.MicropythonFsHex({ uPyHex: IntelHexStr });
17+
var micropythonFsWithRestrictedFsSize = new microbitFs.MicropythonFsHex({ uPyHex: IntelHexStr, maxFsSize: 20 * 1024 });
1818

1919
// Import files from a different MicroPython hex file with filesystem
2020
var addedFilenames = micropythonFs.importFilesFromIntelHex(UploadedHexWithUserFiles);

0 commit comments

Comments
 (0)