AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • Início
  • system&network
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • Início
  • system&network
    • Recentes
    • Highest score
    • tags
  • Ubuntu
    • Recentes
    • Highest score
    • tags
  • Unix
    • Recentes
    • tags
  • DBA
    • Recentes
    • tags
  • Computer
    • Recentes
    • tags
  • Coding
    • Recentes
    • tags
Início / coding / Perguntas / 79575134
Accepted
Jippe
Jippe
Asked: 2025-04-15 20:19:37 +0800 CST2025-04-15 20:19:37 +0800 CST 2025-04-15 20:19:37 +0800 CST

Registro SPDR escravo ATtiny841

  • 772

Versão 1:

Estou usando um Raspberry Pi Pico como mestre SPI e um ATtiny841 como escravo SPI.

Código mestre:

#include "pico/stdlib.h"
#include "hardware/spi.h"
#include <stdio.h>

#define SPI_PORT spi0
#define PIN_MISO 16
#define PIN_MOSI 19
#define PIN_SCK  18
#define PIN_CS   17

uint8_t tx_dummy = 0xAA;
uint8_t rx_buf[3];

void spi_init_master()
{
    spi_init(SPI_PORT, 1000000);
    gpio_set_function(PIN_MISO, GPIO_FUNC_SPI);
    gpio_set_function(PIN_MOSI, GPIO_FUNC_SPI);
    gpio_set_function(PIN_SCK,  GPIO_FUNC_SPI);

    gpio_init(PIN_CS);
    gpio_set_dir(PIN_CS, GPIO_OUT);
    gpio_put(PIN_CS, 1);
}

int main()
{
    stdio_init_all();
    spi_init_master();

    while(true)
    {
        gpio_put(PIN_CS, 0); // Select slave
        tx_dummy = 0xAA;
        for(int i = 0; i < 3; i++)
        {
            spi_write_read_blocking(SPI_PORT, &tx_dummy, &rx_buf[i], 1);
            tx_dummy++;
        }

        gpio_put(PIN_CS, 1); // Deselect slave

        printf("Ontvangen bytes: ");
        for(int i = 0; i < 3; i++)
        {
            printf("0x%02X ", rx_buf[i]);
        }
        printf("\n");

        sleep_ms(1000);
    }
}

Código escravo:

#define SS     PA7
#define MOSI   PA6
#define MISO   PA5
#define SCK    PA4

byte dataToSend[3] = {0xDE, 0xAD, 0xBE};
volatile byte sendIndex = 0;

void setup() {
  pinMode(SCK, INPUT);
  pinMode(MOSI, INPUT);
  pinMode(MISO, OUTPUT);
  pinMode(SS, INPUT);

  SPCR = (1 << SPE) | (1 << SPIE);

  SPDR = dataToSend[0];
}

ISR(SPI_STC_vect) {
  byte received = SPDR;

  
  sendIndex++;
  if (sendIndex >= 3) {
    sendIndex = 0; 
  }
  SPDR = dataToSend[sendIndex];
 
}

void loop() {
}

Em vez de receber o array {0xDE, 0xAD, 0xBE}, recebo {0xDE, 0xAA, 0xAB}.

Alguém sabe como posso escrever o código para que o registrador SPDR do ATtiny841 sobrescreva o valor fictício do mestre com o próximo valor do array antes que o mestre peça um novo valor?

Já tentei com uma interrupção, já tentei sem interrupção. Mas sempre recebo os valores fictícios do mestre como entrada. Eu preferiria que funcionasse com uma interrupção.

Versão 2:

Gerando uma interrupção no pino CS do ATtiny841 e colocando alguns pequenos atrasos no código mestre do Pico, consegui transferir dados do escravo ATiny841 para o mestre Pi Pico.

(Usar a interrupção SPI sempre retorna os dados fictícios que envio do mestre para o escravo)

Agora, tento adicionar uma estrutura de registrador enviando 2 bytes (byte 1 = endereço do registrador, byte 2 = valor fictício). A cada byte, o CS vai para os níveis BAIXO e ALTO para acionar a interrupção no escravo.

Este código quase funciona, mas se o mestre solicitar o registro 0x01, ele receberá o valor do registro 0x02. Se o mestre solicitar o registro 0x02, ele receberá o valor do registro 0x01.

Alguém viu/sabe como posso consertar isso?

Saída do mestre:

Reg value 0x01: 0x99 - 0x01
Reg value 0x02: 0x43 - 0x02
Reg value 0x01: 0x99 - 0x01
Reg value 0x02: 0x43 - 0x02
Reg value 0x01: 0x99 - 0x01
Reg value 0x02: 0x43 - 0x02

Código mestre:

#include "pico/stdlib.h"
#include "hardware/spi.h"
#include <stdio.h>

#define SPI_PORT spi0
#define PIN_MISO 16
#define PIN_MOSI 19
#define PIN_SCK  18
#define PIN_CS   17

uint8_t tx_dummy = 0xAA;
uint8_t rx_buf[2];

void spi_init_master()
{
    spi_init(SPI_PORT, 1000000);
    gpio_set_function(PIN_MISO, GPIO_FUNC_SPI);
    gpio_set_function(PIN_MOSI, GPIO_FUNC_SPI);
    gpio_set_function(PIN_SCK,  GPIO_FUNC_SPI);

    gpio_init(PIN_CS);
    gpio_set_dir(PIN_CS, GPIO_OUT);
    gpio_put(PIN_CS, 1);
}

int main()
{
    stdio_init_all();
    spi_init_master();
    uint8_t adress = 0x01;
    uint8_t test = 0x02;
    while(true)
    {
        gpio_put(PIN_CS, 0);
        sleep_us(10);
        spi_write_read_blocking(SPI_PORT, &adress, &rx_buf[0], 1);
        gpio_put(PIN_CS, 1);
        sleep_us(10);
        gpio_put(PIN_CS, 0);
        sleep_us(10);
        spi_write_read_blocking(SPI_PORT, 0x00, &rx_buf[1], 1);
        gpio_put(PIN_CS, 1);
        sleep_us(10);
        printf("Reg value 0x01: 0x%02X - 0x%02X\n", rx_buf[0], rx_buf[1]);
        sleep_ms(1000);

        gpio_put(PIN_CS, 0);
        sleep_us(10);
        spi_write_read_blocking(SPI_PORT, &test, &rx_buf[0], 1);
        gpio_put(PIN_CS, 1);
        sleep_us(10);
        gpio_put(PIN_CS, 0);
        sleep_us(10);
        spi_write_read_blocking(SPI_PORT, 0x00, &rx_buf[1], 1);
        gpio_put(PIN_CS, 1);
        sleep_us(10);
        printf("Reg value 0x02: 0x%02X - 0x%02X\n", rx_buf[0], rx_buf[1]);
        sleep_ms(1000);      
    }
}

Código escravo:

#define SS     PA7
#define MOSI   PA6
#define MISO   PA5
#define SCK    PA4

volatile byte registerMap[3] = {};

volatile bool lastSSState = 0;
volatile byte receivedAddress = 0;
volatile byte transactionStep = 0;

void setup()
{
  pinMode(SCK, INPUT);
  pinMode(MOSI, INPUT);
  pinMode(MISO, OUTPUT);
  pinMode(SS, INPUT);

  SPCR = (1 << SPE);

  SPDR = registerMap[0];

  registerMap[0x01] = 0x43;
  registerMap[0x02] = 0x99;

  PCMSK0 |= (1 << PCINT7);
  GIMSK |= (1 << PCIE0);
  lastSSState = digitalRead(SS);

  sei();
}

void loop(){}

ISR(PCINT0_vect)
{
  bool currentState = digitalRead(SS);

  if(lastSSState && !currentState) //Falling edge
  {
    if(transactionStep == 0) //First falling edge
    {
      while(!(SPSR & (1 << SPIF)));
      byte received = SPDR;
      receivedAddress = received;

      if(SPSR & (1 << WCOL))
      {
        volatile byte tmp = SPDR;
      }

      SPDR = registerMap[receivedAddress];
      transactionStep = 1;
    }
    else if(transactionStep == 1) //Second falling edge
    {
      while(!(SPSR & (1 << SPIF)));
      volatile byte dummy = SPDR;
      transactionStep = 0;
      receivedAddress = 0;

      if(SPSR & (1 << WCOL))
      {
        volatile byte tmp = SPDR;
      }
      SPDR = 0x00;
    }
  }
  lastSSState = currentState;
}
spi
  • 2 2 respostas
  • 60 Views

2 respostas

  • Voted
  1. Best Answer
    atl
    2025-04-17T10:00:05+08:002025-04-17T10:00:05+08:00

    Experimente isto, que se baseia na sua ideia da versão 2, mas simplifica as coisas para que apenas a transação SPI mínima seja conduzida. Você verá apenas o valor 0x12, o que é útil para saber se há alguma falha antes que o aplicativo mestre comece a ser executado.

    ESCRAVO

    void setup()
    {
      pinMode(SCK, INPUT);
      pinMode(MOSI, INPUT);
      pinMode(MISO, OUTPUT);
      pinMode(SS, INPUT);
      SPCR = (1 << SPE);        // SPI CONTROL REGISTER, ENABLE SPI IN SLAVE MODE
      SPDR = 0x12;              // CONSTANT VALUE SLAVE SENDS RESPONSE TO MASTER ADDRESS
      PCMSK0 |= (1 << PCINT7);  // PIN CHANGE MASK SELECTS PA7/!SS AS PIN TO WATCH
      GIMSK |= (1 << PCIE0);    // PIN CHANGE INTERRUPT ENABLE 0
      sei();                    // SREG I-BIT = 1
    }
    
    void loop(){}
    
    ISR(PCINT0_vect)
    {
      // PIN CHANGED (LOW)
      while( !digitalRead(SS) ) ; // WAIT FOR MASTER TO SET SS HIGH
      SPDR = 0x34; // SS IS HIGH, UPDATE DATA REGISTER, NEXT LOW SS WILL GET THIS VALUE
    }
    

    MESTRE

    #include "pico/stdlib.h"
    #include "hardware/spi.h"
    #include <stdio.h>
    
    #define SPI_PORT spi0
    #define PIN_MISO 16
    #define PIN_MOSI 19
    #define PIN_SCK  18
    #define PIN_CS   17
    
    void spi_init_master()
    {
        spi_init(SPI_PORT, 1000000);
        gpio_set_function(PIN_MISO, GPIO_FUNC_SPI);
        gpio_set_function(PIN_MOSI, GPIO_FUNC_SPI);
        gpio_set_function(PIN_SCK,  GPIO_FUNC_SPI);
    
        gpio_init(PIN_CS);
        gpio_set_dir(PIN_CS, GPIO_OUT);
        gpio_put(PIN_CS, 1);
    }
    
    int main()
    {
        stdio_init_all();
        spi_init_master();
        uint8_t address = 0x00;
        uint8_t value  = 0x00;
        uint8_t dontcare  = 0x00;
        gpio_put(PIN_CS, 0);
        sleep_us(10);
        spi_write_read_blocking(SPI_PORT, &address, &dontcare, 1);
        gpio_put(PIN_CS, 1);
    
        printf("SENT ADDRESS 0x%02X GOT BACK 0x%02X\n", address, dontcare);
        sleep_us(10);
    
        gpio_put(PIN_CS, 0);
        sleep_us(10);
        spi_write_read_blocking(SPI_PORT, &dontcare, &value, 1);
        gpio_put(PIN_CS, 1);
        sleep_us(10);
    
        printf("SENT DUMMY 0x%02X GOT BACK 0x%02X\n", dontcare, value);
    }
    
    • 0
  2. Jippe
    2025-04-17T16:30:57+08:002025-04-17T16:30:57+08:00

    Receber e enviar valores para um ATtiny841 usando SPI

    Código de resgate ATtiny841:

    void setup()
    {
      pinMode(SCK, INPUT);
      pinMode(MOSI, INPUT);
      pinMode(MISO, OUTPUT);
      pinMode(SS, INPUT);
      SPCR = (1 << SPE);        // SPI CONTROL REGISTER, ENABLE SPI IN SLAVE MODE
      SPDR = 0x12;              // CONSTANT VALUE SLAVE SENDS RESPONSE TO MASTER ADDRESS
      PCMSK0 |= (1 << PCINT7);  // PIN CHANGE MASK SELECTS PA7/!SS AS PIN TO WATCH
      GIMSK |= (1 << PCIE0);    // PIN CHANGE INTERRUPT ENABLE 0
      sei();                    // SREG I-BIT = 1
    }
    
    void loop(){}
    
    volatile byte address = 0;
    volatile byte testValue = 0;
    
    ISR(PCINT0_vect)
    {
      while(!digitalRead(SS));   // WAIT FOR MASTER TO SET SS HIGH
      address = SPDR;               // SAVE REGISTER ADDRESS
    
      switch(address)
      {
        case 0x10:                  // SEND REGISTER
          SPDR = 0x34;              // VALUE TO SEND BACK
          break;
        case 0x20:                  // SEND REGISTER
          SPDR = 0x99;              // VALUE TO SEND BACK
          break;
        case 0x30:                  // RECV REGISTER
          while(digitalRead(SS));   // WAIT FOR MASTER TO SET SS LOW
          while(!digitalRead(SS));  // WAIT FOR MASTER TO SET SS HIGH
          testValue = SPDR;         // SAVE RECV VALUE
          break;
        case 0x40:                  // SEND REGISTER
          SPDR = testValue + 1;     // VALUE TO SEND BACK
          break;
      }
    }
    

    Código mestre do Pi Pico:

    #include "pico/stdlib.h"
    #include "hardware/spi.h"
    #include <stdio.h>
    
    #define SPI_PORT spi0
    #define PIN_MISO 16
    #define PIN_MOSI 19
    #define PIN_SCK  18
    #define PIN_CS   17
    
    void spi_init_master()
    {
        spi_init(SPI_PORT, 1000000);
        gpio_set_function(PIN_MISO, GPIO_FUNC_SPI);
        gpio_set_function(PIN_MOSI, GPIO_FUNC_SPI);
        gpio_set_function(PIN_SCK,  GPIO_FUNC_SPI);
    
        gpio_init(PIN_CS);
        gpio_set_dir(PIN_CS, GPIO_OUT);
        gpio_put(PIN_CS, 1);
    }
    
    int main()
    {
        stdio_init_all();
        spi_init_master();
        uint8_t address = 0x10;
        uint8_t testValue = 0x00;
        uint8_t value  = 0x00;
        uint8_t dontcare  = 0x00;
    
        for(;;)
        {
            printf("*************************************************************\n");
            address = 0x10;
            gpio_put(PIN_CS, 0);
            sleep_us(10);
            spi_write_read_blocking(SPI_PORT, &address, &dontcare, 1);
            gpio_put(PIN_CS, 1);
            printf("SENT ADDRESS 0x%02X GOT BACK 0x%02X\n", address, dontcare);
            sleep_us(10);
            gpio_put(PIN_CS, 0);
            sleep_us(10);
            spi_write_read_blocking(SPI_PORT, &address, &value, 1);
            gpio_put(PIN_CS, 1);
            sleep_us(10);
            printf("SENT DUMMY 0x%02X GOT BACK 0x%02X\n", address, value);
            printf("+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+\n");
    
            address = 0x20;
            sleep_ms(1000);
            gpio_put(PIN_CS, 0);
            sleep_us(10);
            spi_write_read_blocking(SPI_PORT, &address, &dontcare, 1);
            gpio_put(PIN_CS, 1);
            printf("SENT ADDRESS 0x%02X GOT BACK 0x%02X\n", address, dontcare);
            sleep_us(10);
            gpio_put(PIN_CS, 0);
            sleep_us(10);
            spi_write_read_blocking(SPI_PORT, &address, &value, 1);
            gpio_put(PIN_CS, 1);
            sleep_us(10);
            printf("SENT DUMMY 0x%02X GOT BACK 0x%02X\n", address, value);
            printf("+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+\n");
    
            address = 0x30;
            sleep_ms(1000);
            gpio_put(PIN_CS, 0);
            sleep_us(10);
            spi_write_read_blocking(SPI_PORT, &address, &dontcare, 1);
            gpio_put(PIN_CS, 1);
            printf("SENT ADDRESS 0x%02X GOT BACK 0x%02X\n", address, dontcare);
            sleep_us(10);
            gpio_put(PIN_CS, 0);
            sleep_us(10);
            spi_write_read_blocking(SPI_PORT, &testValue, &value, 1);
            gpio_put(PIN_CS, 1);
            sleep_us(10);
            printf("SENT DUMMY 0x%02X GOT BACK 0x%02X\n", testValue, value);
            testValue++;
            printf("+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+\n");
    
            address = 0x40;
            sleep_ms(1000);
            gpio_put(PIN_CS, 0);
            sleep_us(10);
            spi_write_read_blocking(SPI_PORT, &address, &dontcare, 1);
            gpio_put(PIN_CS, 1);
            printf("SENT ADDRESS 0x%02X GOT BACK 0x%02X\n", address, dontcare);
            sleep_us(10);
            gpio_put(PIN_CS, 0);
            sleep_us(10);
            spi_write_read_blocking(SPI_PORT, &address, &value, 1);
            gpio_put(PIN_CS, 1);
            sleep_us(10);
            printf("SENT DUMMY 0x%02X GOT BACK 0x%02X\n", address, value);
            printf("+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+\n");
            sleep_ms(1000);
        }
    }
    

    Saída printf() do Pi Pico:

    *************************************************************
    SENT ADDRESS 0x10 GOT BACK 0x12
    SENT DUMMY 0x10 GOT BACK 0x34
    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
    SENT ADDRESS 0x20 GOT BACK 0x34
    SENT DUMMY 0x20 GOT BACK 0x99
    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
    SENT ADDRESS 0x30 GOT BACK 0x99
    SENT DUMMY 0x00 GOT BACK 0x30
    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
    SENT ADDRESS 0x40 GOT BACK 0x00
    SENT DUMMY 0x40 GOT BACK 0x01
    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
    *************************************************************
    SENT ADDRESS 0x10 GOT BACK 0x01
    SENT DUMMY 0x10 GOT BACK 0x34
    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
    SENT ADDRESS 0x20 GOT BACK 0x34
    SENT DUMMY 0x20 GOT BACK 0x99
    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
    SENT ADDRESS 0x30 GOT BACK 0x99
    SENT DUMMY 0x01 GOT BACK 0x30
    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
    SENT ADDRESS 0x40 GOT BACK 0x01
    SENT DUMMY 0x40 GOT BACK 0x02
    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
    *************************************************************
    SENT ADDRESS 0x10 GOT BACK 0x02
    SENT DUMMY 0x10 GOT BACK 0x34
    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
    SENT ADDRESS 0x20 GOT BACK 0x34
    SENT DUMMY 0x20 GOT BACK 0x99
    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
    SENT ADDRESS 0x30 GOT BACK 0x99
    SENT DUMMY 0x02 GOT BACK 0x30
    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
    SENT ADDRESS 0x40 GOT BACK 0x02
    SENT DUMMY 0x40 GOT BACK 0x03
    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
    *************************************************************
    SENT ADDRESS 0x10 GOT BACK 0x03
    SENT DUMMY 0x10 GOT BACK 0x34
    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
    SENT ADDRESS 0x20 GOT BACK 0x34
    SENT DUMMY 0x20 GOT BACK 0x99
    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
    SENT ADDRESS 0x30 GOT BACK 0x99
    SENT DUMMY 0x03 GOT BACK 0x30
    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
    SENT ADDRESS 0x40 GOT BACK 0x03
    SENT DUMMY 0x40 GOT BACK 0x04
    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
    *************************************************************
    
    • 0

relate perguntas

Sidebar

Stats

  • Perguntas 205573
  • respostas 270741
  • best respostas 135370
  • utilizador 68524
  • Highest score
  • respostas
  • Marko Smith

    Reformatar números, inserindo separadores em posições fixas

    • 6 respostas
  • Marko Smith

    Por que os conceitos do C++20 causam erros de restrição cíclica, enquanto o SFINAE antigo não?

    • 2 respostas
  • Marko Smith

    Problema com extensão desinstalada automaticamente do VScode (tema Material)

    • 2 respostas
  • Marko Smith

    Vue 3: Erro na criação "Identificador esperado, mas encontrado 'import'" [duplicado]

    • 1 respostas
  • Marko Smith

    Qual é o propósito de `enum class` com um tipo subjacente especificado, mas sem enumeradores?

    • 1 respostas
  • Marko Smith

    Como faço para corrigir um erro MODULE_NOT_FOUND para um módulo que não importei manualmente?

    • 6 respostas
  • Marko Smith

    `(expression, lvalue) = rvalue` é uma atribuição válida em C ou C++? Por que alguns compiladores aceitam/rejeitam isso?

    • 3 respostas
  • Marko Smith

    Um programa vazio que não faz nada em C++ precisa de um heap de 204 KB, mas não em C

    • 1 respostas
  • Marko Smith

    PowerBI atualmente quebrado com BigQuery: problema de driver Simba com atualização do Windows

    • 2 respostas
  • Marko Smith

    AdMob: MobileAds.initialize() - "java.lang.Integer não pode ser convertido em java.lang.String" para alguns dispositivos

    • 1 respostas
  • Martin Hope
    Fantastic Mr Fox Somente o tipo copiável não é aceito na implementação std::vector do MSVC 2025-04-23 06:40:49 +0800 CST
  • Martin Hope
    Howard Hinnant Encontre o próximo dia da semana usando o cronógrafo 2025-04-21 08:30:25 +0800 CST
  • Martin Hope
    Fedor O inicializador de membro do construtor pode incluir a inicialização de outro membro? 2025-04-15 01:01:44 +0800 CST
  • Martin Hope
    Petr Filipský Por que os conceitos do C++20 causam erros de restrição cíclica, enquanto o SFINAE antigo não? 2025-03-23 21:39:40 +0800 CST
  • Martin Hope
    Catskul O C++20 mudou para permitir a conversão de `type(&)[N]` de matriz de limites conhecidos para `type(&)[]` de matriz de limites desconhecidos? 2025-03-04 06:57:53 +0800 CST
  • Martin Hope
    Stefan Pochmann Como/por que {2,3,10} e {x,3,10} com x=2 são ordenados de forma diferente? 2025-01-13 23:24:07 +0800 CST
  • Martin Hope
    Chad Feller O ponto e vírgula agora é opcional em condicionais bash com [[ .. ]] na versão 5.2? 2024-10-21 05:50:33 +0800 CST
  • Martin Hope
    Wrench Por que um traço duplo (--) faz com que esta cláusula MariaDB seja avaliada como verdadeira? 2024-05-05 13:37:20 +0800 CST
  • Martin Hope
    Waket Zheng Por que `dict(id=1, **{'id': 2})` às vezes gera `KeyError: 'id'` em vez de um TypeError? 2024-05-04 14:19:19 +0800 CST
  • Martin Hope
    user924 AdMob: MobileAds.initialize() - "java.lang.Integer não pode ser convertido em java.lang.String" para alguns dispositivos 2024-03-20 03:12:31 +0800 CST

Hot tag

python javascript c++ c# java typescript sql reactjs html

Explore

  • Início
  • Perguntas
    • Recentes
    • Highest score
  • tag
  • help

Footer

AskOverflow.Dev

About Us

  • About Us
  • Contact Us

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve