Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tape #375

Merged
merged 26 commits into from
Oct 23, 2020
Merged

Tape #375

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
9c23770
adjust timing because, well, timing
jeffpiep Sep 8, 2020
f6de2fb
Merge branch 'master' into tape
jeffpiep Sep 11, 2020
9a0e2bc
Merge branch 'master' into tape
jeffpiep Sep 13, 2020
b4df969
set baud with FUJI value, clean up
jeffpiep Sep 13, 2020
637bd14
add BASIC program cassette file
jeffpiep Sep 13, 2020
39d77d0
add led, add is_active() readout function, cleanup
jeffpiep Sep 17, 2020
d0fb952
cassette writing scaffolding
jeffpiep Sep 19, 2020
9c3e512
create software UART for receive mode
jeffpiep Sep 28, 2020
4656085
fsk period works for mark
jeffpiep Sep 29, 2020
05fc298
some fsk diagnosis
jeffpiep Oct 1, 2020
97da7fc
forgot to print time for diagnosis
jeffpiep Oct 1, 2020
e6c44be
increment state counter in uart
jeffpiep Oct 1, 2020
3254910
monitor file showing successful IRG detection
jeffpiep Oct 1, 2020
b3e929e
print received chunk in debug
jeffpiep Oct 2, 2020
af9e7d0
attempt at persitence denoising in fsk decoder
jeffpiep Oct 2, 2020
cdae7b8
invert flip byte, work on denoising
jeffpiep Oct 3, 2020
546f01b
software uart receive seems to work
jeffpiep Oct 10, 2020
ba9a988
Merge branch 'master' into tape
jeffpiep Oct 10, 2020
cc4d0e7
remove motor line checking, remove debug msgs
jeffpiep Oct 18, 2020
637a6f9
add PROGRAM RECORDER section to index.html webpage
jeffpiep Oct 18, 2020
59d574f
remove cassette log files
jeffpiep Oct 18, 2020
0ba10fd
Merge branch 'master' into tape
jeffpiep Oct 19, 2020
9dc15ea
Merge branch 'master' into tape
jeffpiep Oct 19, 2020
86af643
trying to integrate http into tape control
jeffpiep Oct 23, 2020
2123abb
can now read and write CAS files
jeffpiep Oct 23, 2020
d79a234
Merge branch 'master' into tape
jeffpiep Oct 23, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added data/hello.cas
Binary file not shown.
1 change: 1 addition & 0 deletions data/www/debug.log
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[1018/175245.322:ERROR:directory_reader_win.cc(43)] FindFirstFile: The system cannot find the path specified. (0x3)
1,003 changes: 688 additions & 315 deletions data/www/index.html

Large diffs are not rendered by default.

34 changes: 17 additions & 17 deletions include/version.h
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
/*
This file is automatically modified by the build_version.py script
to update the BUILD and BUILD_DATE values based on the
current Git commit ID and current UTC date/time.

FN_VERSION_MAJOR and FN_VERSION_MINOR should be manually updated
as needed.
*/

#define FN_VERSION_MAJOR 0
#define FN_VERSION_MINOR 5

#define FN_VERSION_BUILD "8934daff"

#define FN_VERSION_DATE "2020-10-20 17:57:42"

#define FN_VERSION_FULL "0.5.8934daff"
/*
This file is automatically modified by the build_version.py script
to update the BUILD and BUILD_DATE values based on the
current Git commit ID and current UTC date/time.
FN_VERSION_MAJOR and FN_VERSION_MINOR should be manually updated
as needed.
*/
#define FN_VERSION_MAJOR 0
#define FN_VERSION_MINOR 5
#define FN_VERSION_BUILD "8934daff"
#define FN_VERSION_DATE "2020-10-20 17:57:42"
#define FN_VERSION_FULL "0.5.8934daff"
18 changes: 17 additions & 1 deletion lib/http/httpServiceConfigurator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
#include "printerlist.h"
#include "utils.h"

#include "fuji.h"
extern sioFuji theFuji;

// TODO: This was copied from another source and needs some bounds-checking!
char* fnHttpServiceConfigurator::url_decode(char *dst, const char *src, size_t dstsize)
{
Expand Down Expand Up @@ -149,6 +152,14 @@ void fnHttpServiceConfigurator::config_rotation_sounds(std::string rotation_soun
Config.save();
}

void fnHttpServiceConfigurator::config_cassette(std::string play_record)
{
Debug_printf("New play/record button value: %s\n", play_record.c_str());
theFuji.cassette()->set_buttons(play_record.c_str());
// call the cassette buttons function passing play_record.c_str()
// find cassette via thefuji object?
}

void fnHttpServiceConfigurator::config_midimaze(std::string hostname)
{
Debug_printf("Set MIDIMaze host: %s\n", hostname.c_str());
Expand Down Expand Up @@ -250,7 +261,12 @@ int fnHttpServiceConfigurator::process_config_post(const char * postdata, size_t
} else if(i->first.compare("midimaze_host") == 0)
{
config_midimaze(i->second);
} else if(i->first.compare("rotation_sounds") == 0)
}
else if (i->first.compare("play_record") == 0)
{
config_cassette(i->second);
}
else if (i->first.compare("rotation_sounds") == 0)
{
config_rotation_sounds(i->second);
}
Expand Down
1 change: 1 addition & 0 deletions lib/http/httpServiceConfigurator.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class fnHttpServiceConfigurator
static void config_hsio(std::string hsio_index);
static void config_timezone(std::string timezone);
static void config_midimaze(std::string host_ip);
static void config_cassette(std::string play_record);
static void config_rotation_sounds(std::string rotation_sounds);

public:
Expand Down
Loading