Skip to content

Commit

Permalink
Updated Frame firmware to v24.179.0818
Browse files Browse the repository at this point in the history
Updated main.lua with new camera capture API
Added tutorials link in profile page
  • Loading branch information
siliconwitch committed Jun 27, 2024
1 parent 67c366c commit 2e6b3ae
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 4 deletions.
Binary file removed assets/frame-firmware-v24.155.0847.zip
Binary file not shown.
Binary file added assets/frame-firmware-v24.179.0818.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion assets/lua_scripts/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ while true do
end)

if state:has_been() > 0.2 and image_taken == false then
frame.camera.capture()
frame.camera.capture {}
image_taken = true
end

Expand Down
4 changes: 2 additions & 2 deletions lib/models/app_logic_model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ class AppLogicModel extends ChangeNotifier {
final response = await _connectedDevice!
.sendString("print(frame.FIRMWARE_VERSION)")
.timeout(const Duration(seconds: 1));
if (response == "v24.155.0847") {
if (response == "v24.179.0818") {
triggerEvent(Event.deviceUpToDate);
} else {
triggerEvent(Event.deviceNeedsUpdate);
Expand Down Expand Up @@ -475,7 +475,7 @@ class AppLogicModel extends ChangeNotifier {
case State.updateFirmware:
state.onEntry(() async {
_connectedDevice!
.updateFirmware("assets/frame-firmware-v24.155.0847.zip")
.updateFirmware("assets/frame-firmware-v24.179.0818.zip")
.listen(
(value) {
bluetoothUploadProgress = value;
Expand Down
6 changes: 6 additions & 0 deletions lib/pages/account.dart
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ class AccountPage extends ConsumerWidget {
mainAxisAlignment: MainAxisAlignment.end,
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
_linkedFooterText("Tutorials", false, () async {
try {
await launchUrl(Uri.parse(
"https://www.youtube.com/playlist?list=PLfbaC5GRVJJgSPdN-KWndTld35tihu1Ic"));
} catch (_) {}
}),
_linkedFooterText("Logout", false, () async {
ref.read(app.model).triggerEvent(app.Event.logoutPressed);
if (context.mounted) {
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: noa
description: "A new Flutter project."
publish_to: 'none'
version: 1.3.8
version: 1.3.9

environment:
sdk: '>=3.3.1 <4.0.0'
Expand Down

0 comments on commit 2e6b3ae

Please sign in to comment.