2021年3月

更改 pip 默认下载源(pip 配置文件)

1、在用户根目录下 ~ 下创建 .pip 隐藏文件夹,如果已经有了可以跳过

-- mkdir ~/.pip

2、进入 .pip 隐藏文件夹并创建 pip.conf 配置文件

-- cd ~/.pip && touch pip.conf

3、启动 Finder(访达) 按 cmd+shift+g 来的进入,输入 ~/.pip 回车进入
pip.conf

[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
[install]
use-mirrors =true
mirrors =https://pypi.tuna.tsinghua.edu.cn/simple

change encoder to normal 1/2 Slower

new v4.3b pcb encoder is so fast ,change one time jump 2 icon,so change code to change encoder 1 icon
/home/jumbo/portapack-mayhem/firmware/application/hw/encoder.cpp

include "portapack_persistent_memory.hpp"

using namespace portapack;
static const int8_t transition_map_slow[] = {

 0,    // 0000: noop
 0,    // 0001: start
 0,    // 0010: start
 0,    // 0011: rate
 1,    // 0100: end
 0,    // 0101: noop
 0,    // 0110: rate
-1,    // 0111: end

};

if (persistent_memory::config_login()) {
return transition_map_slow[state & 0xf];

} else{

return transition_map[state & 0xf];

}


ui_setting.cpp
&checkbox_login,

checkbox_login.set_value(persistent_memory::config_login());

persistent_memory::set_config_login(checkbox_login.value());

ui_setting.hpp

Checkbox checkbox_login {
    { 3 * 8, 12 * 16 },
    20,
    "Encoders Pulses Slower"
};

change mayhem main screen version

portapack-mayhem/firmware/application/ui_navigation.hpp
class InformationView : public View {
public:

InformationView(NavigationView& nav);

private:

static constexpr auto version_string = "v1.3.1";
NavigationView& nav_;

portapack-mayhem/firmware/application/apps/ui_about_simple.cpp